diff options
Diffstat (limited to 'database.js')
-rw-r--r-- | database.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database.js b/database.js index 32365e7..de7083c 100644 --- a/database.js +++ b/database.js @@ -32,8 +32,8 @@ module.exports = { }) .catch(console.err); }, - exists: (index, type, id, callback) => { - return esClient.exists({ + exists: async (index, type, id) => { + return await esClient.exists({ index: index, type: type, id: id |