Removed unused endpoint + related code /raid/profile/list
This commit is contained in:
parent
b11c9579b5
commit
5011af03ea
@ -121,13 +121,6 @@ export class MatchCallbacks
|
||||
return this.httpResponse.nullResponse();
|
||||
}
|
||||
|
||||
/** Handle raid/profile/list */
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
public getProfile(url: string, info: IGetProfileRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>
|
||||
{
|
||||
return this.httpResponse.getBody(this.matchController.getProfile(info));
|
||||
}
|
||||
|
||||
// Handle client/match/available
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
public serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>
|
||||
|
@ -71,22 +71,6 @@ export class MatchController
|
||||
return this.matchConfig.enabled;
|
||||
}
|
||||
|
||||
/** Handle raid/profile/list */
|
||||
public getProfile(info: IGetProfileRequestData): IPmcData[]
|
||||
{
|
||||
if (info.profileId.includes("pmcAID"))
|
||||
{
|
||||
return this.profileHelper.getCompleteProfile(info.profileId.replace("pmcAID", "AID"));
|
||||
}
|
||||
|
||||
if (info.profileId.includes("scavAID"))
|
||||
{
|
||||
return this.profileHelper.getCompleteProfile(info.profileId.replace("scavAID", "AID"));
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/** Handle client/match/group/create */
|
||||
public createGroup(sessionID: string, info: ICreateGroupRequestData): any
|
||||
{
|
||||
|
@ -9,10 +9,6 @@ export class MatchStaticRouter extends StaticRouter
|
||||
constructor(@inject("MatchCallbacks") protected matchCallbacks: MatchCallbacks)
|
||||
{
|
||||
super([
|
||||
new RouteAction("/raid/profile/list", (url: string, info: any, sessionID: string, output: string): any =>
|
||||
{
|
||||
return this.matchCallbacks.getProfile(url, info, sessionID);
|
||||
}),
|
||||
new RouteAction(
|
||||
"/client/match/available",
|
||||
(url: string, info: any, sessionID: string, output: string): any =>
|
||||
|
Loading…
Reference in New Issue
Block a user