summary refs log tree commit diff
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
commitd5965f05d30c367c4530da2ab7753b6aab758228 (patch)
treedc151c58c11da690ff2ca970fbeae2d2fb01c848
parentDon't reset voice regions on server start (diff)
downloadserver-d5965f05d30c367c4530da2ab7753b6aab758228.tar.xz
await the dm channel handler
-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;