We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c458c1d commit 4b05050Copy full SHA for 4b05050
1 file changed
packages/db/db.ts
@@ -23,7 +23,7 @@ export const DB_POOL_PROFILES = {
23
type DbRole = keyof typeof DB_POOL_PROFILES
24
25
const roleEnv = process.env.SIM_DB_ROLE?.trim()
26
-if (roleEnv && !(roleEnv in DB_POOL_PROFILES)) {
+if (roleEnv && !Object.hasOwn(DB_POOL_PROFILES, roleEnv)) {
27
throw new Error(
28
`Invalid SIM_DB_ROLE '${roleEnv}' — expected one of ${Object.keys(DB_POOL_PROFILES).join(', ')} (or unset for web)`
29
)
0 commit comments