Open xuezier opened 9 years ago
req.models[tablename].find({ fid: data.fid, myid: data.myid }, function(err, result) { if (err) { res.send(500, err); } else { console.log(eval(result.chat)) } })
any problems with the code? I change the key to find diffrient data, the first time I got the data right。 but after it, it always return the first data I have got .
use diffrient keys but got the same data, why?
req.models[tablename].find({ fid: data.fid, myid: data.myid }, function(err, result) { if (err) { res.send(500, err); } else { console.log(eval(result.chat)) } })
any problems with the code? I change the key to find diffrient data, the first time I got the data right。 but after it, it always return the first data I have got .