From 83590dcc2536673606dd92a53b00c0c75b7af4d0 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 19 Oct 2023 21:44:10 +0100 Subject: [PATCH] Get id if not found in profile --- project/src/controllers/QuestController.ts | 2 +- project/src/models/eft/common/tables/IRepeatableQuests.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/controllers/QuestController.ts b/project/src/controllers/QuestController.ts index 16159da6..e5046c93 100644 --- a/project/src/controllers/QuestController.ts +++ b/project/src/controllers/QuestController.ts @@ -385,7 +385,7 @@ export class QuestController const change = {}; change[repeatableQuestProfile._id] = repeatableSettings.changeRequirement[repeatableQuestProfile._id]; const responseData: IPmcDataRepeatableQuest = { - id: repeatableSettings.id, + id: repeatableSettings.id ?? this.questConfig.repeatableQuests.find(x => x.name === repeatableQuestProfile.sptRepatableGroupName).id, name: repeatableSettings.name, endTime: repeatableSettings.endTime, changeRequirement: change, diff --git a/project/src/models/eft/common/tables/IRepeatableQuests.ts b/project/src/models/eft/common/tables/IRepeatableQuests.ts index 2f9a63bc..3d717604 100644 --- a/project/src/models/eft/common/tables/IRepeatableQuests.ts +++ b/project/src/models/eft/common/tables/IRepeatableQuests.ts @@ -50,9 +50,9 @@ export interface IChangeCost export interface IRepeatableQuest { - _id: any + _id: string traderId: string - location: any + location: string image: string type: string isKey: boolean