|
@@ -52,7 +52,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
'logType=? and dataId=? GROUP BY Year(createDate) ';
|
|
|
sequelize.query(sqlQuery,
|
|
|
{ replacements: [logType,dataId], type: sequelize.QueryTypes.SELECT }
|
|
|
- ).then(function(projects) {
|
|
|
+ ).then(function(results) {
|
|
|
list=results;
|
|
|
})
|
|
|
console.log(list);
|
|
@@ -63,7 +63,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
|
|
|
});
|
|
|
|
|
|
- .then(function(projects) {
|
|
|
+ .then(function(results) {
|
|
|
list=results;
|
|
|
})
|
|
|
*/
|