diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2018-07-12 15:40:49 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2018-07-12 15:41:16 +0300 |
| commit | 00bb5585f28773acdc742800181ce22ec41b5415 (patch) | |
| tree | 7f820267bbb3950b0f0e7b5c0d42b15d60168fc9 /index.js | |
| parent | d965ac8bb00e443c6c9ce72674b72edcaa3e9ecc (diff) | |
Fix secrets fetching
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.'); |
