From d6b1a2371fad1bd3b81f813d5601094224869dae Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Thu, 14 Aug 2025 04:47:12 +0200 Subject: [PATCH] await --- src/services/missionInventoryUpdateService.ts | 2 +- src/services/purchaseService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 85f85e59..57785701 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -721,7 +721,7 @@ export const addMissionInventoryUpdates = async ( if (goal && goal.ClanGoal && inventory.GuildId) { const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes"); if (guild) { - handleGuildGoalProgress(guild, { + await handleGuildGoalProgress(guild, { Count: uploadProgress.Count, Tag: goal.Tag, goalId: new Types.ObjectId(goal._id.$oid) diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts index 167f076f..706b4e2d 100644 --- a/src/services/purchaseService.ts +++ b/src/services/purchaseService.ts @@ -151,7 +151,7 @@ export const handlePurchase = async ( const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes"); const goal = getWorldState().Goals.find(x => x.Tag == "DuviriMurmurEvent"); if (guild && goal) { - handleGuildGoalProgress(guild, { + await handleGuildGoalProgress(guild, { Count: offer.ItemPrices[0].ItemCount * purchaseRequest.PurchaseParams.Quantity, Tag: goal.Tag, goalId: new Types.ObjectId(goal._id.$oid)