await the dm channel handler

This commit is contained in:
Madeline 2022-07-22 21:00:00 +10:00
parent a62223b1ac
commit d5965f05d3

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;