diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 21:00:00 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 21:00:00 +1000 |
commit | d5965f05d30c367c4530da2ab7753b6aab758228 (patch) | |
tree | dc151c58c11da690ff2ca970fbeae2d2fb01c848 /api/src/routes/channels | |
parent | Don't reset voice regions on server start (diff) | |
download | server-d5965f05d30c367c4530da2ab7753b6aab758228.tar.xz |
await the dm channel handler
Diffstat (limited to 'api/src/routes/channels')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 57273776..1e9b58ae 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -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; |