chore: delete PS field from requests #2800

Closed
AMelonInsideLemon wants to merge 1 commits from AMelonInsideLemon:delete-PS into main
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?: {