diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/studio/src/core/tokens.ts | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip |
update formatter config (#11640)
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/studio/src/core/tokens.ts')
-rw-r--r-- | packages/studio/src/core/tokens.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/studio/src/core/tokens.ts b/packages/studio/src/core/tokens.ts index 4a4ec53c1..43919ce7f 100644 --- a/packages/studio/src/core/tokens.ts +++ b/packages/studio/src/core/tokens.ts @@ -50,7 +50,7 @@ class ManagedRemoteAppToken implements ManagedAppToken { static async createToken( sessionToken: string, - projectId: string + projectId: string, ): Promise<{ token: string; ttl: number }> { const spinner = ora('Connecting to remote database...').start(); const response = await safeFetch( @@ -64,7 +64,7 @@ class ManagedRemoteAppToken implements ManagedAppToken { }, (res) => { throw new Error(`Failed to create token: ${res.status} ${res.statusText}`); - } + }, ); spinner.succeed(green('Connected to remote database.')); @@ -94,7 +94,7 @@ class ManagedRemoteAppToken implements ManagedAppToken { }, () => { throw new Error(`Failed to fetch ${url}.`); - } + }, ); } @@ -125,7 +125,7 @@ class ManagedRemoteAppToken implements ManagedAppToken { try { const { token, ttl } = await ManagedRemoteAppToken.createToken( this.session, - this.projectId + this.projectId, ); this.token = token; this.ttl = ttl; @@ -135,7 +135,7 @@ class ManagedRemoteAppToken implements ManagedAppToken { // If we get here we couldn't create a new token. Since the existing token // is expired we really can't do anything and should exit. throw new Error( - `Token has expired and attempts to renew it have failed, please try again.` + `Token has expired and attempts to renew it have failed, please try again.`, ); } } @@ -217,7 +217,7 @@ async function safeFetch( options: Parameters<typeof fetch>[1] = {}, onNotOK: (response: Response) => void | Promise<void> = () => { throw new Error(`Request to ${url} returned a non-OK status code.`); - } + }, ): Promise<Response> { const response = await fetch(url, options); |