Skip to content

Commit 9102bcd

Browse files
author
Theodore Li
committed
Fix lint
1 parent 399db36 commit 9102bcd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/db/scripts/migrate-block-api-keys-to-byok.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ async function processWorkspace(
543543
const chosen = resolved[0]
544544

545545
if (DRY_RUN) {
546-
console.log(` [DRY RUN] Would insert BYOK for provider "${providerId}": ${maskKey(chosen.key)}`)
546+
console.log(
547+
` [DRY RUN] Would insert BYOK for provider "${providerId}": ${maskKey(chosen.key)}`
548+
)
547549
continue
548550
}
549551

@@ -675,11 +677,16 @@ async function run() {
675677

676678
if (DRY_RUN) {
677679
const workspaceIdsWithKeys = results
678-
.map((result, resultIndex) => (result.shouldWriteWorkspaceId ? workspaceChunk[resultIndex] : null))
680+
.map((result, resultIndex) =>
681+
result.shouldWriteWorkspaceId ? workspaceChunk[resultIndex] : null
682+
)
679683
.filter((id): id is string => id !== null)
680684

681685
if (workspaceIdsWithKeys.length > 0) {
682-
appendFileSync(resolve('migrate-byok-workspace-ids.txt'), `${workspaceIdsWithKeys.join('\n')}\n`)
686+
appendFileSync(
687+
resolve('migrate-byok-workspace-ids.txt'),
688+
`${workspaceIdsWithKeys.join('\n')}\n`
689+
)
683690
}
684691
}
685692

0 commit comments

Comments
 (0)