mirror of
https://github.com/balzack/databag.git
synced 2025-02-15 13:09:17 +00:00
8 lines
292 B
JavaScript
8 lines
292 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function setAccountSearchable(server, token, flag) {
|
|
let res = await fetchWithTimeout(`https://${server}/account/searchable?agent=${token}`, { method: 'PUT', body: JSON.stringify(flag) })
|
|
checkResponse(res);
|
|
}
|
|
|