summaryrefslogtreecommitdiff
path: root/database.js
diff options
context:
space:
mode:
authorMarvin Borner2018-11-09 20:30:13 +0100
committerMarvin Borner2018-11-09 20:30:13 +0100
commit2aba2904523fec49f9cb922ef3f2933aefa3b673 (patch)
tree8d924babcecfd436336d478fb2e93cdc27462ff8 /database.js
parent4d853c04be28f434c570390130de7a6e8836d5f6 (diff)
Fixed endless database existing check
Diffstat (limited to 'database.js')
-rw-r--r--database.js4
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