Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/http/routes/admin/tenants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ interface tenantDBInterface {
anon_key: string
database_url: string
database_pool_url?: string
database_pool_mode?: string
max_connections?: number
jwt_secret: string
jwks: { keys?: JwksConfigKey[] } | null
Expand Down Expand Up @@ -356,6 +357,7 @@ export default async function routes(fastify: FastifyInstance) {
serviceKey,
features,
databasePoolUrl,
databasePoolMode,
maxConnections,
tracingMode,
} = request.body
Expand Down Expand Up @@ -401,6 +403,10 @@ export default async function routes(fastify: FastifyInstance) {
tenantInfo.max_connections = Number(maxConnections)
}

if (databasePoolMode) {
tenantInfo.database_pool_mode = databasePoolMode
}

if (tracingMode) {
tenantInfo.tracing_mode = tracingMode
}
Expand Down
Loading