mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 21:24:50 +02:00
fix
This commit is contained in:
@@ -21,7 +21,12 @@ async function assertOk(status: number, body: string, route: string): Promise<vo
|
||||
}
|
||||
|
||||
async function resetState(request: APIRequestContext): Promise<void> {
|
||||
const response = await request.post(`${BASE_URL}/api/reset-db`);
|
||||
const response = await request.post(`${BASE_URL}/api/reset-db`, {
|
||||
data: '{}',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
await assertOk(response.status(), await response.text(), '/api/reset-db');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user