Skip to content

Commit

Permalink
Update reply variable name to replyTo
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed Feb 16, 2024
1 parent 66feb65 commit 355cafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/message.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -122,7 +122,7 @@ export default class MessageController {
sender: sender,
to: to,
roomId: roomId,
reply: reply,
replyTo: replyTo,
seen: false,
type: type,
body: null,
Expand Down

0 comments on commit 355cafd

Please sign in to comment.