fix import

This commit is contained in:
Namekuji 2023-08-12 14:30:13 -04:00
parent d0665c2fc2
commit b06e27161f
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import { prepared, scyllaClient } from "@/db/scylla";
import { scyllaClient } from "@/db/scylla.js";
import { Notes } from "@/models/index.js";
/**

View file

@ -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