mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-30 23:50:19 -07:00
11 lines
428 B
TypeScript
11 lines
428 B
TypeScript
import { BackendService } from '../../services/BackendService';
|
|
import { AdminPersistence } from '../../persistence';
|
|
|
|
export function adjustMod(userName: string, shouldBeMod?: boolean, shouldBeJudge?: boolean): void {
|
|
BackendService.sendAdminCommand('Command_AdjustMod', { userName, shouldBeMod, shouldBeJudge }, {
|
|
onSuccess: () => {
|
|
AdminPersistence.adjustMod(userName, shouldBeMod, shouldBeJudge);
|
|
},
|
|
});
|
|
}
|