Skip to content

Commit c0ba02a

Browse files
authored
fix: update poolMode on put (#689)
1 parent 72faac8 commit c0ba02a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/http/routes/admin/tenants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ interface tenantDBInterface {
8989
anon_key: string
9090
database_url: string
9191
database_pool_url?: string
92+
database_pool_mode?: string
9293
max_connections?: number
9394
jwt_secret: string
9495
jwks: { keys?: JwksConfigKey[] } | null
@@ -356,6 +357,7 @@ export default async function routes(fastify: FastifyInstance) {
356357
serviceKey,
357358
features,
358359
databasePoolUrl,
360+
databasePoolMode,
359361
maxConnections,
360362
tracingMode,
361363
} = request.body
@@ -401,6 +403,10 @@ export default async function routes(fastify: FastifyInstance) {
401403
tenantInfo.max_connections = Number(maxConnections)
402404
}
403405

406+
if (databasePoolMode) {
407+
tenantInfo.database_pool_mode = databasePoolMode
408+
}
409+
404410
if (tracingMode) {
405411
tenantInfo.tracing_mode = tracingMode
406412
}

0 commit comments

Comments
 (0)