diff --git a/project/src/callbacks/InventoryCallbacks.ts b/project/src/callbacks/InventoryCallbacks.ts index b3e6d0c6..26740265 100644 --- a/project/src/callbacks/InventoryCallbacks.ts +++ b/project/src/callbacks/InventoryCallbacks.ts @@ -179,6 +179,10 @@ export class InventoryCallbacks return this.inventoryController.setFavoriteItem(pmcData, body, sessionId); } + /** + * TODO - MOVE INTO QUEST CODE + * Handle game/profile/items/moving - QuestFail + */ public failQuest(pmcData: IPmcData, request: IFailQuestRequestData, sessionID: string): IItemEventRouterResponse { return this.questController.failQuest(pmcData, request, sessionID); diff --git a/project/src/routers/item_events/InventoryItemEventRouter.ts b/project/src/routers/item_events/InventoryItemEventRouter.ts index 391f43fa..a43da2af 100644 --- a/project/src/routers/item_events/InventoryItemEventRouter.ts +++ b/project/src/routers/item_events/InventoryItemEventRouter.ts @@ -97,6 +97,8 @@ export class InventoryItemEventRouter extends ItemEventRouterDefinition return this.inventoryCallbacks.redeemProfileReward(pmcData, body, sessionID); case ItemEventActions.SET_FAVORITE_ITEMS: return this.inventoryCallbacks.setFavoriteItem(pmcData, body, sessionID); + case ItemEventActions.QUEST_FAIL: + return this.inventoryCallbacks.failQuest(pmcData, body, sessionID); default: throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`); }