From 75b3b1d6b1e40d2c5341b1d5cbddc8bfa160d3de Mon Sep 17 00:00:00 2001 From: EpicUsername12 <39063367+EpicUsername12@users.noreply.github.com> Date: Thu, 20 Apr 2023 06:04:49 +0200 Subject: [PATCH] Forgot to await the community save() --- src/services/miiverse-api/routes/communities.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/miiverse-api/routes/communities.js b/src/services/miiverse-api/routes/communities.js index 9857c4e..8c8a69b 100644 --- a/src/services/miiverse-api/routes/communities.js +++ b/src/services/miiverse-api/routes/communities.js @@ -110,7 +110,8 @@ router.post('/', multer().none(), async function (req, res) { olive_community_id: (parseInt(parent_community.community_id) + (5000 * num_communities)).toString(), app_data: req.body.app_data.replace(/[^A-Za-z0-9+/=\s]/g, ""), }); - new_community.save(); + + await new_community.save(); let response = await comPostGen.Community(new_community); res.contentType("application/xml");