コード例 #1
0
 function (callback) {
     ResourceAssociation.count({where: {
         resourceId: resource.id,
         userId: user.id
     }}).then(function (count) {
         callback(null, count);
     });
 },
コード例 #2
0
 function countUserResourceAssociations(callback) {
     ResourceAssociation.count({where: {
         resourceId: data.resourceId,
         userId: data.userId
     }}).then(function (count) {
         callback(null, count);
     });
 },