This commit is contained in:
parent
c88fe122ad
commit
12ecc9715f
@ -820,7 +820,7 @@ export const getAllianceClient = async (
|
||||
export const handleGuildGoalProgress = async (
|
||||
guild: TGuildDatabaseDocument,
|
||||
upload: { Count: number; Tag: string; goalId: Types.ObjectId }
|
||||
) => {
|
||||
): Promise<void> => {
|
||||
guild.GoalProgress ??= [];
|
||||
const goalProgress = guild.GoalProgress.find(x => x.goalId.equals(upload.goalId));
|
||||
if (!goalProgress) {
|
||||
|
||||
@ -36,7 +36,6 @@ import { TInventoryDatabaseDocument } from "@/src/models/inventoryModels/invento
|
||||
import { fromStoreItem, toStoreItem } from "@/src/services/itemDataService";
|
||||
import { DailyDeal } from "@/src/models/worldStateModel";
|
||||
import { fromMongoDate, toMongoDate } from "@/src/helpers/inventoryHelpers";
|
||||
import { Account } from "@/src/models/loginModel";
|
||||
import { Guild } from "@/src/models/guildModel";
|
||||
import { handleGuildGoalProgress } from "@/src/services/guildService";
|
||||
import { Types } from "mongoose";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user