Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzqm committed May 21, 2024
1 parent 2374c9e commit 391686b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gcp/cloudsql/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ export async function execute(
}
}

const client = await pool.connect();
const conn = await pool.connect();
logFn(`Logged in as ${opts.username}`);
for (const s of sqlStatements) {
logFn(`Executing: '${s}'`);
try {
await client.query(s);
await conn.query(s);
} catch (err) {
throw new FirebaseError(`Error executing ${err}`);

Check warning on line 99 in src/gcp/cloudsql/connect.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Invalid type "unknown" of template literal expression
}
}

// This hangs somehow.
// await pool.end();
conn.release();
await pool.end();
connector.close();
}

Expand Down

0 comments on commit 391686b

Please sign in to comment.