await
This commit is contained in:
parent
b6fe0f7b6c
commit
c88fe122ad
@ -721,7 +721,7 @@ export const addMissionInventoryUpdates = async (
|
|||||||
if (goal && goal.ClanGoal && inventory.GuildId) {
|
if (goal && goal.ClanGoal && inventory.GuildId) {
|
||||||
const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes");
|
const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes");
|
||||||
if (guild) {
|
if (guild) {
|
||||||
handleGuildGoalProgress(guild, {
|
await handleGuildGoalProgress(guild, {
|
||||||
Count: uploadProgress.Count,
|
Count: uploadProgress.Count,
|
||||||
Tag: goal.Tag,
|
Tag: goal.Tag,
|
||||||
goalId: new Types.ObjectId(goal._id.$oid)
|
goalId: new Types.ObjectId(goal._id.$oid)
|
||||||
|
|||||||
@ -150,7 +150,7 @@ export const handlePurchase = async (
|
|||||||
const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes");
|
const guild = await Guild.findById(inventory.GuildId, "GoalProgress Tier VaultDecoRecipes");
|
||||||
const goal = getWorldState().Goals.find(x => x.Tag == "DuviriMurmurEvent");
|
const goal = getWorldState().Goals.find(x => x.Tag == "DuviriMurmurEvent");
|
||||||
if (guild && goal) {
|
if (guild && goal) {
|
||||||
handleGuildGoalProgress(guild, {
|
await handleGuildGoalProgress(guild, {
|
||||||
Count: offer.ItemPrices[0].ItemCount * purchaseRequest.PurchaseParams.Quantity,
|
Count: offer.ItemPrices[0].ItemCount * purchaseRequest.PurchaseParams.Quantity,
|
||||||
Tag: goal.Tag,
|
Tag: goal.Tag,
|
||||||
goalId: new Types.ObjectId(goal._id.$oid)
|
goalId: new Types.ObjectId(goal._id.$oid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user