Skip to content

Commit

Permalink
fix: allow updating the poolUrl to empty string (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Aug 3, 2023
1 parent 17cac07 commit 68dd466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/routes/tenant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default async function routes(fastify: FastifyInstance) {
.update({
anon_key: anonKey !== undefined ? encrypt(anonKey) : undefined,
database_url: databaseUrl !== undefined ? encrypt(databaseUrl) : undefined,
database_pool_url: databasePoolUrl ? encrypt(databasePoolUrl) : undefined,
database_pool_url: databasePoolUrl !== undefined ? encrypt(databasePoolUrl) : undefined,
max_connections: maxConnections ? Number(maxConnections) : undefined,
file_size_limit: fileSizeLimit,
jwt_secret: jwtSecret !== undefined ? encrypt(jwtSecret) : undefined,
Expand Down

0 comments on commit 68dd466

Please sign in to comment.