mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
8 lines
298 B
JavaScript
8 lines
298 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function setAccountStatus(token, accountId, disabled) {
|
|
let res = await fetchWithTimeout(`/admin/accounts/${accountId}/status?token=${token}`, { method: 'PUT', body: JSON.stringify(disabled) })
|
|
checkResponse(res);
|
|
}
|
|
|