Built motion from commit 48095ee.|0.0.102
[motion.git] / server / models / analytics_extracted_report.js
index 8ee64a0..b88fa55 100644 (file)
@@ -13,14 +13,14 @@ module.exports = function(sequelize, DataTypes) {
       type: DataTypes.DATE,
       get: function() {
         // 'this' allows you to access attributes of the instance
-        return moment(this.getDataValue('startDate')).format("DD-MM-YYYY").toString();
+        return moment(this.getDataValue('startDate')).format("DD-MM-YYYY");
       }
     },
     endDate: {
       type: DataTypes.DATE,
       get: function() {
         // 'this' allows you to access attributes of the instance
-        return moment(this.getDataValue('endDate')).format("DD-MM-YYYY").toString();
+        return moment(this.getDataValue('endDate')).format("DD-MM-YYYY");
       }
     },
     status: {
@@ -31,7 +31,7 @@ module.exports = function(sequelize, DataTypes) {
       type: DataTypes.DATE,
       get: function() {
         // 'this' allows you to access attributes of the instance
-        return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY").toString();
+        return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY");
       }
     },
   }, {