Add correct type to cancel-all
route + improve comment accouracy of client/match/group/status
This commit is contained in:
parent
ed7e30bd4c
commit
4e744d3103
@ -121,7 +121,7 @@ export class MatchCallbacks
|
||||
|
||||
/** Handle client/match/group/invite/cancel-all */
|
||||
// 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();
|
||||
}
|
||||
@ -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
|
||||
* @returns
|
||||
*/
|
||||
|
@ -2,6 +2,7 @@ import { inject, injectable } from "tsyringe";
|
||||
|
||||
import { MatchCallbacks } from "@spt-aki/callbacks/MatchCallbacks";
|
||||
import { RouteAction, StaticRouter } from "@spt-aki/di/Router";
|
||||
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
||||
|
||||
@injectable()
|
||||
export class MatchStaticRouter extends StaticRouter
|
||||
@ -110,7 +111,7 @@ export class MatchStaticRouter extends StaticRouter
|
||||
),
|
||||
new RouteAction(
|
||||
"/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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user