diff --git a/project/src/callbacks/PrestigeCallbacks.ts b/project/src/callbacks/PrestigeCallbacks.ts index 2d024865..b9ec5277 100644 --- a/project/src/callbacks/PrestigeCallbacks.ts +++ b/project/src/callbacks/PrestigeCallbacks.ts @@ -2,9 +2,8 @@ import type { PrestigeController } from "@spt/controllers/PrestigeController"; import { HttpServerHelper } from "@spt/helpers/HttpServerHelper"; import type { IEmptyRequestData } from "@spt/models/eft/common/IEmptyRequestData"; import type { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData"; -import type { INotifierChannel } from "@spt/models/eft/notifier/INotifier"; +import { IGetPrestigeResponse } from "@spt/models/eft/prestige/IGetPrestigeResponse"; import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt/utils/JsonUtil"; import { inject, injectable } from "tsyringe"; @injectable() @@ -12,7 +11,6 @@ export class PrestigeCallbacks { constructor( @inject("HttpServerHelper") protected httpServerHelper: HttpServerHelper, @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("PrestigeController") protected prestigeController: PrestigeController, ) {} @@ -21,16 +19,12 @@ export class PrestigeCallbacks { url: string, info: IEmptyRequestData, sessionID: string, - ): IGetBodyResponseData { + ): IGetBodyResponseData { return this.httpResponse.getBody(this.prestigeController.getPrestige(sessionID, info)); } /** Handle client/prestige/obtain */ - public obtainPrestige( - url: string, - info: IEmptyRequestData, - sessionID: string, - ): IGetBodyResponseData { + public obtainPrestige(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData { return this.httpResponse.getBody(this.prestigeController.obtainPrestige(sessionID, info)); } } diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index ccfaea98..3ac2f973 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -18,7 +18,6 @@ import type { IHideoutArea, IStage } from "@spt/models/eft/hideout/IHideoutArea" import type { IHideoutCancelProductionRequestData } from "@spt/models/eft/hideout/IHideoutCancelProductionRequestData"; import type { IHideoutCircleOfCultistProductionStartRequestData } from "@spt/models/eft/hideout/IHideoutCircleOfCultistProductionStartRequestData"; import type { IHideoutContinuousProductionStartRequestData } from "@spt/models/eft/hideout/IHideoutContinuousProductionStartRequestData"; -import type { IHideoutCustomisationGlobal } from "@spt/models/eft/hideout/IHideoutCustomisation"; import type { IHideoutCustomizationApplyRequestData } from "@spt/models/eft/hideout/IHideoutCustomizationApplyRequestData"; import type { IHideoutDeleteProductionRequestData } from "@spt/models/eft/hideout/IHideoutDeleteProductionRequestData"; import type { IHideoutImproveAreaRequestData } from "@spt/models/eft/hideout/IHideoutImproveAreaRequestData"; diff --git a/project/src/controllers/PrestigeController.ts b/project/src/controllers/PrestigeController.ts index 952d3bbf..129ee373 100644 --- a/project/src/controllers/PrestigeController.ts +++ b/project/src/controllers/PrestigeController.ts @@ -4,6 +4,7 @@ import type { ItemHelper } from "@spt/helpers/ItemHelper"; import { ProfileHelper } from "@spt/helpers/ProfileHelper"; import { QuestHelper } from "@spt/helpers/QuestHelper"; import { TraderHelper } from "@spt/helpers/TraderHelper"; +import { IGetPrestigeResponse } from "@spt/models/eft/prestige/IGetPrestigeResponse"; import type { ILogger } from "@spt/models/spt/utils/ILogger"; import { EventOutputHolder } from "@spt/routers/EventOutputHolder"; import { SaveServer } from "@spt/servers/SaveServer"; @@ -43,7 +44,7 @@ export class PrestigeController { /** * Handle /client/prestige/list */ - public getPrestige(sessionID: string, info: any): any { + public getPrestige(sessionID: string, info: IEmptyRequestData): IGetPrestigeResponse { return { elements: this.databaseService.getTemplates().prestige }; } diff --git a/project/src/models/eft/prestige/IGetPrestigeResponse.ts b/project/src/models/eft/prestige/IGetPrestigeResponse.ts new file mode 100644 index 00000000..7ad23f46 --- /dev/null +++ b/project/src/models/eft/prestige/IGetPrestigeResponse.ts @@ -0,0 +1,5 @@ +import { IPrestige } from "@spt/models/eft/common/tables/IPrestige"; + +export interface IGetPrestigeResponse { + elements: IPrestige; +}