@@ -26,6 +26,7 @@ const patchSchema = {
26
26
anonKey : { type : 'string' } ,
27
27
databaseUrl : { type : 'string' } ,
28
28
databasePoolUrl : { type : 'string' , nullable : true } ,
29
+ databasePoolMode : { type : 'string' , nullable : true } ,
29
30
maxConnections : { type : 'number' } ,
30
31
jwks : { type : 'object' , nullable : true } ,
31
32
fileSizeLimit : { type : 'number' } ,
@@ -112,6 +113,7 @@ export default async function routes(fastify: FastifyInstance) {
112
113
anon_key,
113
114
database_url,
114
115
database_pool_url,
116
+ database_pool_mode,
115
117
max_connections,
116
118
file_size_limit,
117
119
jwt_secret,
@@ -130,6 +132,7 @@ export default async function routes(fastify: FastifyInstance) {
130
132
anonKey : decrypt ( anon_key ) ,
131
133
databaseUrl : decrypt ( database_url ) ,
132
134
databasePoolUrl : database_pool_url ? decrypt ( database_pool_url ) : undefined ,
135
+ databasePoolMode : database_pool_mode ,
133
136
maxConnections : max_connections ? Number ( max_connections ) : undefined ,
134
137
fileSizeLimit : Number ( file_size_limit ) ,
135
138
jwtSecret : decrypt ( jwt_secret ) ,
@@ -164,6 +167,7 @@ export default async function routes(fastify: FastifyInstance) {
164
167
anon_key,
165
168
database_url,
166
169
database_pool_url,
170
+ database_pool_mode,
167
171
max_connections,
168
172
file_size_limit,
169
173
jwt_secret,
@@ -188,6 +192,7 @@ export default async function routes(fastify: FastifyInstance) {
188
192
: database_pool_url
189
193
? decrypt ( database_pool_url )
190
194
: undefined ,
195
+ databasePoolMode : database_pool_mode ,
191
196
maxConnections : max_connections ? Number ( max_connections ) : undefined ,
192
197
fileSizeLimit : Number ( file_size_limit ) ,
193
198
jwtSecret : decrypt ( jwt_secret ) ,
@@ -217,6 +222,7 @@ export default async function routes(fastify: FastifyInstance) {
217
222
const {
218
223
anonKey,
219
224
databaseUrl,
225
+ databasePoolMode,
220
226
fileSizeLimit,
221
227
jwtSecret,
222
228
jwks,
@@ -233,6 +239,7 @@ export default async function routes(fastify: FastifyInstance) {
233
239
anon_key : encrypt ( anonKey ) ,
234
240
database_url : encrypt ( databaseUrl ) ,
235
241
database_pool_url : databasePoolUrl ? encrypt ( databasePoolUrl ) : undefined ,
242
+ database_pool_mode : databasePoolMode ,
236
243
max_connections : maxConnections ? Number ( maxConnections ) : undefined ,
237
244
file_size_limit : fileSizeLimit ,
238
245
jwt_secret : encrypt ( jwtSecret ) ,
@@ -280,6 +287,7 @@ export default async function routes(fastify: FastifyInstance) {
280
287
serviceKey,
281
288
features,
282
289
databasePoolUrl,
290
+ databasePoolMode,
283
291
maxConnections,
284
292
tracingMode,
285
293
disableEvents,
@@ -295,6 +303,7 @@ export default async function routes(fastify: FastifyInstance) {
295
303
: databasePoolUrl === null
296
304
? null
297
305
: undefined ,
306
+ database_pool_mode : databasePoolMode ,
298
307
max_connections : maxConnections ? Number ( maxConnections ) : undefined ,
299
308
file_size_limit : fileSizeLimit ,
300
309
jwt_secret : jwtSecret !== undefined ? encrypt ( jwtSecret ) : undefined ,
0 commit comments