mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-09-09 10:45:13 -05:00
This commit is contained in:
@@ -945,12 +945,8 @@ export const actions: { [k: string]: QueryHandler } = {
|
||||
if (team.ownerid !== this.user.id) {
|
||||
throw new ActionError(`You cannot delete that team, as it is not yours.`);
|
||||
}
|
||||
try {
|
||||
await tables.teams.delete(teamid);
|
||||
return {success: true};
|
||||
} catch {
|
||||
return {success: false};
|
||||
}
|
||||
await tables.teams.deleteAll()`WHERE teamid = ${teamid}`;
|
||||
return {success: true};
|
||||
},
|
||||
async copyteam(params) {
|
||||
let { teamid, password } = params;
|
||||
|
||||
Reference in New Issue
Block a user