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