Get id if not found in profile

This commit is contained in:
Dev 2023-10-19 21:44:10 +01:00
parent 20b9a39cda
commit 83590dcc25
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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