await the dm channel handler

This commit is contained in:
Madeline
2022-07-22 21:00:00 +10:00
parent a2f0c6f282
commit 56b63ef8bf

View File

@@ -228,7 +228,7 @@ router.post(
const channel_dto = await DmChannelDTO.from(channel);
// Only one recipients should be closed here, since in group DMs the recipient is deleted not closed
Promise.all(
await Promise.all(
channel.recipients!.map((recipient) => {
if (recipient.closed) {
recipient.closed = false;