Forgot to await the community save()

This commit is contained in:
EpicUsername12
2023-04-20 06:04:49 +02:00
parent 7eaede2fee
commit 75b3b1d6b1

View File

@@ -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");