summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <FredKSchott@users.noreply.github.com> 2024-02-29 05:27:46 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-02-29 05:27:46 +0000
commit3757a212c01cee03b8e96e1e9697a187ae7cc290 (patch)
tree5117ae17265905265051f11c1aceaf7c92a4eeae
parentc2e7b9847e976eca252906c9e76047e953a1da61 (diff)
downloadastro-3757a212c01cee03b8e96e1e9697a187ae7cc290.tar.gz
astro-3757a212c01cee03b8e96e1e9697a187ae7cc290.tar.zst
astro-3757a212c01cee03b8e96e1e9697a187ae7cc290.zip
[ci] format
-rw-r--r--packages/db/src/core/cli/commands/login/index.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/db/src/core/cli/commands/login/index.ts b/packages/db/src/core/cli/commands/login/index.ts
index 824a4760d..215d5723e 100644
--- a/packages/db/src/core/cli/commands/login/index.ts
+++ b/packages/db/src/core/cli/commands/login/index.ts
@@ -1,8 +1,8 @@
+import { mkdir, writeFile } from 'node:fs/promises';
+import { createServer as _createServer } from 'node:http';
import type { AstroConfig } from 'astro';
import { listen } from 'async-listen';
import { cyan } from 'kleur/colors';
-import { mkdir, writeFile } from 'node:fs/promises';
-import { createServer as _createServer } from 'node:http';
import open from 'open';
import ora from 'ora';
import type { Arguments } from 'yargs-parser';
@@ -16,8 +16,7 @@ import { getAstroStudioUrl } from '../../../utils.js';
// 4. The temporary server receives and saves the session token, logging the user in
// 5. The user is redirected one last time to a success/failure page
async function createServer(): Promise<{ url: string; promise: Promise<string> }> {
- let resolve: (value: string | PromiseLike<string>) => void,
- reject: (reason?: Error) => void;
+ let resolve: (value: string | PromiseLike<string>) => void, reject: (reason?: Error) => void;
const server = _createServer((req, res) => {
// Handle the request