- Prevented admin challenge solves from creating score records
- Added operator solves list to the Admin panel profile - Allowed deletion of specific operator solves from the Admin panel - Enhanced operator solves list with alphabetical sorting, difficulty colors, and point values - Added rank medal icons to operator solves in the Admin panel
This commit is contained in:
@@ -134,11 +134,17 @@ class ApiService {
|
||||
}
|
||||
|
||||
async deleteTeam(id: string): Promise<void> {
|
||||
const res = await fetch(`${API_BASE}/admin/teams/${id}`, {
|
||||
await fetch(`${API_BASE}/admin/teams/${id}`, {
|
||||
method: 'DELETE',
|
||||
headers: this.getHeaders(),
|
||||
headers: { ...this.getHeaders() }
|
||||
});
|
||||
}
|
||||
|
||||
async deleteSolve(teamId: string, challengeId: string): Promise<void> {
|
||||
await fetch(`${API_BASE}/admin/solves/${teamId}/${challengeId}`, {
|
||||
method: 'DELETE',
|
||||
headers: { ...this.getHeaders() }
|
||||
});
|
||||
if (!res.ok) throw new Error('Failed to delete team');
|
||||
}
|
||||
|
||||
async submitFlag(challengeId: string, flag: string): Promise<{ success: boolean }> {
|
||||
|
||||
Reference in New Issue
Block a user