aboutsummaryrefslogtreecommitdiff
path: root/packages/db/src/core/utils.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/utils.ts
parentcb356a5db6b1ec2799790a603f931a961883ab31 (diff)
downloadastro-cfbf428643a04f7630e45c59e6d70d77de6673f1.tar.gz
astro-cfbf428643a04f7630e45c59e6d70d77de6673f1.tar.zst
astro-cfbf428643a04f7630e45c59e6d70d77de6673f1.zip
[ci] format
Diffstat (limited to 'packages/db/src/core/utils.ts')
-rw-r--r--packages/db/src/core/utils.ts20
1 files changed, 11 insertions, 9 deletions
diff --git a/packages/db/src/core/utils.ts b/packages/db/src/core/utils.ts
index 9797992b8..cf3e37535 100644
--- a/packages/db/src/core/utils.ts
+++ b/packages/db/src/core/utils.ts
@@ -19,15 +19,17 @@ export function getRemoteDatabaseInfo(): RemoteDatabaseInfo {
const astroEnv = getAstroEnv();
const studioEnv = getAstroStudioEnv();
- if (studioEnv.ASTRO_STUDIO_REMOTE_DB_URL) return {
- type: 'studio',
- url: studioEnv.ASTRO_STUDIO_REMOTE_DB_URL,
- };
-
- if (astroEnv.ASTRO_DB_REMOTE_URL) return {
- type: 'libsql',
- url: astroEnv.ASTRO_DB_REMOTE_URL,
- };
+ if (studioEnv.ASTRO_STUDIO_REMOTE_DB_URL)
+ return {
+ type: 'studio',
+ url: studioEnv.ASTRO_STUDIO_REMOTE_DB_URL,
+ };
+
+ if (astroEnv.ASTRO_DB_REMOTE_URL)
+ return {
+ type: 'libsql',
+ url: astroEnv.ASTRO_DB_REMOTE_URL,
+ };
return {
type: 'studio',