Built motion from commit 9adbe3c.|0.0.122
[motion.git] / server / models / history / report_openchannel_history.js
index fc082c5..a77d3df 100644 (file)
@@ -24,12 +24,7 @@ module.exports = function(sequelize, DataTypes) {
     },
     connectid: {
       type: DataTypes.STRING,
-      unique: true,
-      set: function() {
-        this.setDataValue('connectid', this.uniqueid);
-        this.setDataValue('reason', 'connect');
-        this.setDataValue('connectedAt', moment().format("YYYY-MM-DD HH:mm:ss"));
-      }
+      unique: true
     },
     calledAt: DataTypes.DATE,
     rejectedAt: DataTypes.DATE,