forked from OpenWF/SpaceNinjaServer
chore: delete PS field from requests
It clutters the logs, and we don’t use this field anyway
This commit is contained in:
parent
05fbefa7f4
commit
973b1d4ca8
@ -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 => {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -81,7 +81,6 @@ export type IMissionInventoryUpdateRequest = {
|
||||
hosts: string[];
|
||||
currentClients: unknown[];
|
||||
ChallengeProgress: IChallengeProgress[];
|
||||
PS: string;
|
||||
ActiveDojoColorResearch: string;
|
||||
RewardInfo?: IRewardInfo;
|
||||
NemesisKillConvert?: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user