summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-22 21:00:00 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-22 21:00:00 +1000
commit56b63ef8bf22dd804ad30d133716fbccfd1c529e (patch)
tree76d352a170f22230dcb8954253ef7fef80b5744f /api/src
parentDon't reset voice regions on server start (diff)
downloadserver-56b63ef8bf22dd804ad30d133716fbccfd1c529e.tar.xz
await the dm channel handler
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts2
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;