kk
This commit is contained in:
parent
2f32a8381c
commit
4d90a66cdd
2
db.js
2
db.js
@ -41,12 +41,14 @@ module.exports = function(name){
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.set_v = function(cid,v){
|
this.set_v = function(cid,v){
|
||||||
|
this.get_chat(cid);
|
||||||
return new Promise((resolve, reject)=>{
|
return new Promise((resolve, reject)=>{
|
||||||
resolve(this.db.get("chats").find({id:cid}).set('tracking',v).write());
|
resolve(this.db.get("chats").find({id:cid}).set('tracking',v).write());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.get_v = function(cid){
|
this.get_v = function(cid){
|
||||||
|
this.get_chat(cid);
|
||||||
return new Promise((resolve, reject)=>{
|
return new Promise((resolve, reject)=>{
|
||||||
resolve(this.db.get("chats").find({id:cid}).value());
|
resolve(this.db.get("chats").find({id:cid}).value());
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user