From db112ee5ede4151654c3a8b4022722b38971ae5c Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 18 Oct 2025 23:44:28 -0700 Subject: [PATCH] chore: handle updateQuest request having CompletionDate (#2909) The client date representation would produce a schema error Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2909 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/questService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/questService.ts b/src/services/questService.ts index 30866b6b..11653beb 100644 --- a/src/services/questService.ts +++ b/src/services/questService.ts @@ -13,7 +13,7 @@ import questCompletionItems from "../../static/fixed_responses/questCompletionRe import type { ITypeCount } from "../types/commonTypes.ts"; export interface IUpdateQuestRequest { - QuestKeys: Omit[]; + QuestKeys: IQuestKeyClient[]; PS: string; questCompletion: boolean; PlayerShipEvents: unknown[]; @@ -36,6 +36,7 @@ export const updateQuestKey = async ( throw new Error(`quest key ${questKeyUpdate[0].ItemType} not found`); } + delete questKeyUpdate[0].CompletionDate; inventory.QuestKeys[questKeyIndex].overwrite(questKeyUpdate[0]); const inventoryChanges: IInventoryChanges = {};