Skip to content

Commit 2e259f1

Browse files
committed
fix: don't override previous content of "commands" var
1 parent 552b368 commit 2e259f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drivers/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export function getInitializationCommands(config: SQLiteCloudConfig): string {
4444
}
4545

4646
if (config.apikey) {
47-
commands = `AUTH APIKEY ${config.apikey}; `
47+
commands += `AUTH APIKEY ${config.apikey}; `
4848
} else {
49-
commands = `AUTH USER ${config.username || ''} ${config.password_hashed ? 'HASH' : 'PASSWORD'} ${config.password || ''}; `
49+
commands += `AUTH USER ${config.username || ''} ${config.password_hashed ? 'HASH' : 'PASSWORD'} ${config.password || ''}; `
5050
}
5151

5252
if (config.database) {

0 commit comments

Comments
 (0)