(dbWrapper)
| 379 | } |
| 380 | |
| 381 | function isPostgresSqlReady(dbWrapper) { |
| 382 | return Boolean( |
| 383 | dbWrapper?.db?.pool && |
| 384 | typeof dbWrapper.db.isAvailable === 'function' && |
| 385 | dbWrapper.db.isAvailable(), |
| 386 | ); |
| 387 | } |
| 388 | |
| 389 | async function getEndedGiveawaysFromKv(client) { |
| 390 | const wrapper = client?.db; |
no test coverage detected