阅读背景:

sequelize.js - 按id和返回结果查找

来源:互联网 

I have a function,

我有一个功能,

var findUserDevice = function(userDeviceId){

    var device = db.DeviceUser.find({
        where: {
            id: userDeviceId
        }
    }).then(function(device) {
        if (!device) {
            return 'not find';
        }
        return device.dataValues;
    });
};
var findUserDevi



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: