From 355cafd298acd38d763b52e5e2bbd10dad3198c7 Mon Sep 17 00:00:00 2001 From: bhc Date: Fri, 16 Feb 2024 20:33:35 +0300 Subject: [PATCH] Update reply variable name to replyTo --- src/controllers/message.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/message.controller.ts b/src/controllers/message.controller.ts index f5811ee..9261f6a 100644 --- a/src/controllers/message.controller.ts +++ b/src/controllers/message.controller.ts @@ -39,7 +39,7 @@ export default class MessageController { const to: string = req.body.to; const roomId: string = req.body.roomId; const type: string = req.body.type; - const reply: string = req.body.reply || null; + const replyTo: string = req.body.reply || null; switch (type) { case "body": @@ -122,7 +122,7 @@ export default class MessageController { sender: sender, to: to, roomId: roomId, - reply: reply, + replyTo: replyTo, seen: false, type: type, body: null,