Skip to content

Commit f1c9f5a

Browse files
committed
avoid exposing connection string
1 parent 874d883 commit f1c9f5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ module.exports = function (reporter, definition) {
2020
}))
2121

2222
reporter.closeListeners.add('postgres', this, () => db.$pool.end())
23+
24+
// avoid exposing connection string through /api/extensions
25+
definition.options = {}
2326
}

0 commit comments

Comments
 (0)