From 2aba2904523fec49f9cb922ef3f2933aefa3b673 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 9 Nov 2018 20:30:13 +0100 Subject: Fixed endless database existing check --- database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'database.js') 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 -- cgit v1.2.3