aboutsummaryrefslogtreecommitdiff
path: root/packages/db/src/core/cli/migration-queries.ts
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <ematipico@users.noreply.github.com> 2024-08-28 11:21:37 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-08-28 11:21:37 +0000
commitcfbf428643a04f7630e45c59e6d70d77de6673f1 (patch)
tree8726f3bf68d79d948e25fcb1c7e66c3bce9a100d /packages/db/src/core/cli/migration-queries.ts
parentcb356a5db6b1ec2799790a603f931a961883ab31 (diff)
downloadastro-cfbf428643a04f7630e45c59e6d70d77de6673f1.tar.gz
astro-cfbf428643a04f7630e45c59e6d70d77de6673f1.tar.zst
astro-cfbf428643a04f7630e45c59e6d70d77de6673f1.zip
[ci] format
Diffstat (limited to 'packages/db/src/core/cli/migration-queries.ts')
-rw-r--r--packages/db/src/core/cli/migration-queries.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/db/src/core/cli/migration-queries.ts b/packages/db/src/core/cli/migration-queries.ts
index 1a16001df..5c4a23557 100644
--- a/packages/db/src/core/cli/migration-queries.ts
+++ b/packages/db/src/core/cli/migration-queries.ts
@@ -436,7 +436,7 @@ export function getProductionCurrentSnapshot(options: {
async function getDbCurrentSnapshot(
appToken: string,
- remoteUrl: string
+ remoteUrl: string,
): Promise<DBSnapshot | undefined> {
const client = createRemoteDatabaseClient({
dbType: 'libsql',
@@ -447,7 +447,7 @@ async function getDbCurrentSnapshot(
try {
const res = await client.get<{ snapshot: string }>(
// Latest snapshot
- sql`select snapshot from _astro_db_snapshot order by id desc limit 1;`
+ sql`select snapshot from _astro_db_snapshot order by id desc limit 1;`,
);
return JSON.parse(res.snapshot);
@@ -464,7 +464,7 @@ async function getDbCurrentSnapshot(
async function getStudioCurrentSnapshot(
appToken: string,
- remoteUrl: string
+ remoteUrl: string,
): Promise<DBSnapshot | undefined> {
const url = new URL('/db/schema', remoteUrl);