Built motion from commit d127c62.|0.0.151
[motion.git] / server / models / history / report_call_history.js
index d1411b2..6f26dd8 100644 (file)
@@ -24,16 +24,7 @@ module.exports = function(sequelize, DataTypes) {
     lastapplication: DataTypes.STRING,
     lastdata: DataTypes.STRING,
     starttime: DataTypes.DATE,
-    answertime: {
-      type: DataTypes.DATE,
-      set: function(answertime) {
-        if (answertime !== '') {
-          this.setDataValue('answertime', answertime);
-        } else {
-          this.setDataValue('answertime', null);
-        }
-      }
-    },
+    answertime: DataTypes.DATE,
     endtime: DataTypes.DATE,
     duration: DataTypes.INTEGER,
     billableseconds: DataTypes.INTEGER,