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 = {};
|
const change = {};
|
||||||
change[repeatableQuestProfile._id] = repeatableSettings.changeRequirement[repeatableQuestProfile._id];
|
change[repeatableQuestProfile._id] = repeatableSettings.changeRequirement[repeatableQuestProfile._id];
|
||||||
const responseData: IPmcDataRepeatableQuest = {
|
const responseData: IPmcDataRepeatableQuest = {
|
||||||
id: repeatableSettings.id,
|
id: repeatableSettings.id ?? this.questConfig.repeatableQuests.find(x => x.name === repeatableQuestProfile.sptRepatableGroupName).id,
|
||||||
name: repeatableSettings.name,
|
name: repeatableSettings.name,
|
||||||
endTime: repeatableSettings.endTime,
|
endTime: repeatableSettings.endTime,
|
||||||
changeRequirement: change,
|
changeRequirement: change,
|
||||||
|
@ -50,9 +50,9 @@ export interface IChangeCost
|
|||||||
|
|
||||||
export interface IRepeatableQuest
|
export interface IRepeatableQuest
|
||||||
{
|
{
|
||||||
_id: any
|
_id: string
|
||||||
traderId: string
|
traderId: string
|
||||||
location: any
|
location: string
|
||||||
image: string
|
image: string
|
||||||
type: string
|
type: string
|
||||||
isKey: boolean
|
isKey: boolean
|
||||||
|
Loading…
Reference in New Issue
Block a user