Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ookamiiixd committed Dec 11, 2022
1 parent 490263d commit b3b0382
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/controllers/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ export const list: RequestHandler = async (req, res) => {
where: { sessionId },
});

res
.status(200)
.json({
data: messages,
cursor: messages.length ? messages[messages.length - 1].pkId : null,
});
res.status(200).json({
data: messages,
cursor: messages.length ? messages[messages.length - 1].pkId : null,
});
} catch (e) {
const message = 'An error occured during message list';
logger.error(e, message);
Expand Down

0 comments on commit b3b0382

Please sign in to comment.