1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 21:24:50 +02:00
This commit is contained in:
kakkokari-gtyih
2026-07-08 11:11:51 +09:00
parent 152639b481
commit b50dee9b5b

View File

@@ -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');
}