Get id if not found in profile
This commit is contained in:
parent
20b9a39cda
commit
83590dcc25
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user