aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2018-07-12 15:40:49 +0300
committerJan Tuomi <jan.tuomi@eficode.com>2018-07-12 15:41:16 +0300
commit00bb5585f28773acdc742800181ce22ec41b5415 (patch)
tree7f820267bbb3950b0f0e7b5c0d42b15d60168fc9 /index.js
parentd965ac8bb00e443c6c9ce72674b72edcaa3e9ecc (diff)
Fix secrets fetching
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 558d7d0..7ae392d 100644
--- a/index.js
+++ b/index.js
@@ -30,7 +30,7 @@ app.all('/:path*', async (req, res) => {
return res.send('No such endpoint.');
}
- const secretsList = await models.endpoints.find();
+ const secretsList = await models.secrets.find();
if (!secretsList) {
res.status(500);
return res.send('Failed to fetch secrets from the database.');