chore: delete PS field from requests

It clutters the logs, and we don’t use this field anyway
This commit is contained in:
AMelonInsideLemon 2025-09-20 10:34:33 +02:00
parent 05fbefa7f4
commit 973b1d4ca8
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,9 @@ import { JSONParse } from "json-with-bigint";
export const getJSONfromString = <T>(str: string): T => {
const jsonSubstring = str.substring(0, str.lastIndexOf("}") + 1);
return JSONParse(jsonSubstring) as T;
const obj = JSONParse(jsonSubstring) as T;
if (obj && typeof obj === "object" && "PS" in obj) delete obj.PS;
return obj;
};
export const getSubstringFromKeyword = (str: string, keyword: string): string => {

View File

@ -14,7 +14,6 @@ import type { ITypeCount } from "../types/commonTypes.ts";
export interface IUpdateQuestRequest {
QuestKeys: Omit<IQuestKeyDatabase, "CompletionDate">[];
PS: string;
questCompletion: boolean;
PlayerShipEvents: unknown[];
crossPlaySetting: string;

View File

@ -81,7 +81,6 @@ export type IMissionInventoryUpdateRequest = {
hosts: string[];
currentClients: unknown[];
ChallengeProgress: IChallengeProgress[];
PS: string;
ActiveDojoColorResearch: string;
RewardInfo?: IRewardInfo;
NemesisKillConvert?: {