From 712a90d502f797504966acaa09f0b0d95fa2969b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 5 Feb 2020 21:41:54 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/messaging/messages/read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/messaging/messages/read.ts b/src/server/api/endpoints/messaging/messages/read.ts index 1c25a26238..7829fcef6c 100644 --- a/src/server/api/endpoints/messaging/messages/read.ts +++ b/src/server/api/endpoints/messaging/messages/read.ts @@ -44,7 +44,7 @@ export default define(meta, async (ps, user) => { } if (message.recipientId) { - await readUserMessagingMessage(user.id, message.recipientId, [message.id]).catch(e => { + await readUserMessagingMessage(user.id, message.userId, [message.id]).catch(e => { if (e.id === 'e140a4bf-49ce-4fb6-b67c-b78dadf6b52f') throw new ApiError(meta.errors.noSuchMessage); throw e; });