From 4d90a66cdd175cc9942a69132969bd840cfd074e Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Wed, 1 Jul 2020 11:36:17 +0200 Subject: [PATCH] kk --- db.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.js b/db.js index b53859c..8715330 100644 --- a/db.js +++ b/db.js @@ -41,12 +41,14 @@ module.exports = function(name){ }; this.set_v = function(cid,v){ + this.get_chat(cid); return new Promise((resolve, reject)=>{ resolve(this.db.get("chats").find({id:cid}).set('tracking',v).write()); }); }; this.get_v = function(cid){ + this.get_chat(cid); return new Promise((resolve, reject)=>{ resolve(this.db.get("chats").find({id:cid}).value()); });