Removed unused endpoint

This commit is contained in:
Dev 2024-10-24 12:20:46 +01:00
parent a27e4fd334
commit 62c64b7480
2 changed files with 1 additions and 30 deletions

View File

@ -2,10 +2,10 @@ import { HealthHelper } from "@spt/helpers/HealthHelper";
import { InventoryHelper } from "@spt/helpers/InventoryHelper";
import { ItemHelper } from "@spt/helpers/ItemHelper";
import { IPmcData } from "@spt/models/eft/common/IPmcData";
import { IBodyPartHealth } from "@spt/models/eft/common/tables/IBotBase";
import { IBodyPart, IHealthTreatmentRequestData } from "@spt/models/eft/health/IHealthTreatmentRequestData";
import { IOffraidEatRequestData } from "@spt/models/eft/health/IOffraidEatRequestData";
import { IOffraidHealRequestData } from "@spt/models/eft/health/IOffraidHealRequestData";
import { ISyncHealthRequestData } from "@spt/models/eft/health/ISyncHealthRequestData";
import { IWorkoutData } from "@spt/models/eft/health/IWorkoutData";
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
@ -32,24 +32,6 @@ export class HealthController {
@inject("PrimaryCloner") protected cloner: ICloner,
) {}
/**
* stores in-raid player health
* @param pmcData Player profile
* @param info Request data
* @param sessionID Player id
* @param addEffects Should effects found be added or removed from profile
* @param deleteExistingEffects Should all prior effects be removed before apply new ones
*/
public saveVitality(
pmcData: IPmcData,
info: ISyncHealthRequestData,
sessionID: string,
addEffects = true,
deleteExistingEffects = true,
): void {
this.healthHelper.saveVitality(pmcData, info, sessionID, addEffects, deleteExistingEffects);
}
/**
* When healing in menu
* @param pmcData Player profile

View File

@ -7,17 +7,6 @@ import { inject, injectable } from "tsyringe";
export class HealthStaticRouter extends StaticRouter {
constructor(@inject("HealthCallbacks") protected healthCallbacks: HealthCallbacks) {
super([
new RouteAction(
"/player/health/sync",
async (
url: string,
info: any,
sessionID: string,
output: string,
): Promise<IGetBodyResponseData<string>> => {
return this.healthCallbacks.syncHealth(url, info, sessionID);
},
),
new RouteAction(
"/client/hideout/workout",
async (