mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
refactor(FE-316): Replace bulk delete with single-item delete
This commit is contained in:
@@ -107,18 +107,10 @@ export class UniformityApiService extends BaseApiService<
|
||||
);
|
||||
}
|
||||
|
||||
async bulkDelete(
|
||||
ids: number[]
|
||||
): Promise<BaseApiResponse<Uniformity[]> | undefined> {
|
||||
return await this.customRequest<BaseApiResponse<Uniformity[]>>(
|
||||
'bulk-delete',
|
||||
{
|
||||
method: 'POST',
|
||||
payload: {
|
||||
ids,
|
||||
},
|
||||
}
|
||||
);
|
||||
async delete(id: number): Promise<BaseApiResponse<Uniformity> | undefined> {
|
||||
return await this.customRequest<BaseApiResponse<Uniformity>>(`/${id}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user