forked from OpenWF/SpaceNinjaServer
make the array optional
This commit is contained in:
parent
2187b1cae5
commit
e361d7ee5c
@ -1414,7 +1414,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
|
||||
//https://warframe.fandom.com/wiki/Heist
|
||||
//ProfitTaker(1-4) Example:"LocationTag": "EudicoHeists", "Jobs":Mission name
|
||||
CompletedJobChains: [completedJobChainsSchema],
|
||||
CompletedJobChains: { type: [completedJobChainsSchema], default: undefined },
|
||||
//Night Wave Challenge
|
||||
SeasonChallengeHistory: [seasonChallengeHistorySchema],
|
||||
|
||||
|
@ -152,6 +152,7 @@ export const addMissionInventoryUpdates = async (
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [bounty, tier, hub, id, tag] = inventoryUpdates.RewardInfo.jobId.split("_");
|
||||
if (tag == "EudicoHeists") {
|
||||
inventory.CompletedJobChains ??= [];
|
||||
let chain = inventory.CompletedJobChains.find(x => x.LocationTag == tag);
|
||||
if (!chain) {
|
||||
chain =
|
||||
|
@ -292,7 +292,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
|
||||
RecentVendorPurchases?: IRecentVendorPurchaseClient[];
|
||||
NodeIntrosCompleted: string[];
|
||||
GuildId?: IOid;
|
||||
CompletedJobChains: ICompletedJobChain[];
|
||||
CompletedJobChains?: ICompletedJobChain[];
|
||||
SeasonChallengeHistory: ISeasonChallenge[];
|
||||
EquippedInstrument?: string;
|
||||
InvasionChainProgress: IInvasionChainProgress[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user