summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteReadService.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-02-08 16:04:41 +0900
committerGitHub <noreply@github.com>2024-02-08 16:04:41 +0900
commit0f7918c51b990c1b307360e5ae5d2397df1e00e1 (patch)
tree85215080c51553ac2f78a0567df9bbb2377ff116 /packages/backend/src/core/NoteReadService.ts
parentfix(frontend) misskey-js type (#13202) (diff)
downloadsharkey-0f7918c51b990c1b307360e5ae5d2397df1e00e1.tar.gz
sharkey-0f7918c51b990c1b307360e5ae5d2397df1e00e1.tar.bz2
sharkey-0f7918c51b990c1b307360e5ae5d2397df1e00e1.zip
refactor(backend): exist -> exists (#13203)
* refactor(backend): exist -> exists * fix
Diffstat (limited to 'packages/backend/src/core/NoteReadService.ts')
-rw-r--r--packages/backend/src/core/NoteReadService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/NoteReadService.ts b/packages/backend/src/core/NoteReadService.ts
index c73cf76592..11791a4412 100644
--- a/packages/backend/src/core/NoteReadService.ts
+++ b/packages/backend/src/core/NoteReadService.ts
@@ -49,7 +49,7 @@ export class NoteReadService implements OnApplicationShutdown {
//#endregion
// スレッドミュート
- const isThreadMuted = await this.noteThreadMutingsRepository.exist({
+ const isThreadMuted = await this.noteThreadMutingsRepository.exists({
where: {
userId: userId,
threadId: note.threadId ?? note.id,
@@ -70,7 +70,7 @@ export class NoteReadService implements OnApplicationShutdown {
// 2秒経っても既読にならなかったら「未読の投稿がありますよ」イベントを発行する
setTimeout(2000, 'unread note', { signal: this.#shutdownController.signal }).then(async () => {
- const exist = await this.noteUnreadsRepository.exist({ where: { id: unread.id } });
+ const exist = await this.noteUnreadsRepository.exists({ where: { id: unread.id } });
if (!exist) return;