mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
8a23ee530c
commit
c9a1111275
1 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue