0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
Fred K. Schott 2024-03-11 19:33:26 +00:00 committed by astrobot-houston
parent 8a23ee530c
commit c9a1111275

View file

@ -94,9 +94,7 @@ async function pushSchema({
console.error(await response.text());
throw new Error(`/db/push fetch failed: ${response.status} ${response.statusText}`);
}
const result = (await response.json()) as
| { success: false; }
| { success: true; };
const result = (await response.json()) as { success: false } | { success: true };
if (!result.success) {
console.error(`${url.toString()} unsuccessful`);
console.error(await response.text());