diff --git a/project/src/controllers/QuestController.ts b/project/src/controllers/QuestController.ts index c4d72fd4..41a25827 100644 --- a/project/src/controllers/QuestController.ts +++ b/project/src/controllers/QuestController.ts @@ -997,6 +997,8 @@ export class QuestController output: IItemEventRouterResponse, ): IItemEventRouterResponse { - return this.questHelper.failQuest(pmcData, request, sessionID, output); + this.questHelper.failQuest(pmcData, request, sessionID, output); + + return output; } } diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 3a212987..d6a607a5 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -677,14 +677,13 @@ export class QuestHelper * @param failRequest Fail quest request data * @param sessionID Session id * @param output Client output - * @returns Item event router response */ public failQuest( pmcData: IPmcData, failRequest: IFailQuestRequestData, sessionID: string, output: IItemEventRouterResponse = null, - ): IItemEventRouterResponse + ): void { // Prepare response to send back to client if (!output) @@ -716,8 +715,6 @@ export class QuestHelper } output.profileChanges[sessionID].quests.push(...this.failedUnlocked(failRequest.qid, sessionID)); - - return output; } /**