From b06e27161fd53b5580f86ca9b118f82f846f0658 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sat, 12 Aug 2023 14:30:13 -0400 Subject: [PATCH] fix import --- packages/backend/src/misc/count-same-renotes.ts | 2 +- packages/backend/src/services/note/delete.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/misc/count-same-renotes.ts b/packages/backend/src/misc/count-same-renotes.ts index 705fc35d57..c966dd3460 100644 --- a/packages/backend/src/misc/count-same-renotes.ts +++ b/packages/backend/src/misc/count-same-renotes.ts @@ -1,4 +1,4 @@ -import { prepared, scyllaClient } from "@/db/scylla"; +import { scyllaClient } from "@/db/scylla.js"; import { Notes } from "@/models/index.js"; /** diff --git a/packages/backend/src/services/note/delete.ts b/packages/backend/src/services/note/delete.ts index 5482c9563b..563b1fb887 100644 --- a/packages/backend/src/services/note/delete.ts +++ b/packages/backend/src/services/note/delete.ts @@ -30,9 +30,9 @@ import { } from "@/db/scylla.js"; /** - * 投稿を削除します。 - * @param user 投稿者 - * @param note 投稿 + * Delete a post + * @param user Poster + * @param note Post */ export default async function ( user: { id: User["id"]; uri: User["uri"]; host: User["host"] }, @@ -41,7 +41,7 @@ export default async function ( ) { const deletedAt = new Date(); - // この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき + // If no other boosts exists except this (potentially boost) post if ( note.renoteId && (await countSameRenotes(user.id, note.renoteId, note.id)) === 0