Add correct type to cancel-all route + improve comment accouracy of client/match/group/status

This commit is contained in:
Dev 2024-03-26 15:44:11 +00:00
parent ed7e30bd4c
commit 4e744d3103
2 changed files with 4 additions and 3 deletions

View File

@ -121,7 +121,7 @@ export class MatchCallbacks
/** Handle client/match/group/invite/cancel-all */ /** Handle client/match/group/invite/cancel-all */
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
public cancelAllGroupInvite(url: string, info: any, sessionID: string): INullResponseData public cancelAllGroupInvite(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData
{ {
return this.httpResponse.nullResponse(); return this.httpResponse.nullResponse();
} }
@ -160,7 +160,7 @@ export class MatchCallbacks
} }
/** /**
* @deprecated - not called on raid start/end or game start/exit * Called periodically while in a group
* Handle client/match/group/status * Handle client/match/group/status
* @returns * @returns
*/ */

View File

@ -2,6 +2,7 @@ import { inject, injectable } from "tsyringe";
import { MatchCallbacks } from "@spt-aki/callbacks/MatchCallbacks"; import { MatchCallbacks } from "@spt-aki/callbacks/MatchCallbacks";
import { RouteAction, StaticRouter } from "@spt-aki/di/Router"; import { RouteAction, StaticRouter } from "@spt-aki/di/Router";
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
@injectable() @injectable()
export class MatchStaticRouter extends StaticRouter export class MatchStaticRouter extends StaticRouter
@ -110,7 +111,7 @@ export class MatchStaticRouter extends StaticRouter
), ),
new RouteAction( new RouteAction(
"/client/match/group/invite/cancel-all", "/client/match/group/invite/cancel-all",
(url: string, info: any, sessionID: string, output: string): any => (url: string, info: IEmptyRequestData, sessionID: string, output: string): any =>
{ {
return this.matchCallbacks.cancelAllGroupInvite(url, info, sessionID); return this.matchCallbacks.cancelAllGroupInvite(url, info, sessionID);
}, },