不要怂,就是干,撸起袖子干!

fix indentation wtf bbq

1 parent 1f6ab673
...@@ -195,6 +195,7 @@ module.exports = (function() { ...@@ -195,6 +195,7 @@ module.exports = (function() {
if (primaryKeyDeleted) { if (primaryKeyDeleted) {
targetAttribute.primaryKey = sourceAttribute.primaryKey = true targetAttribute.primaryKey = sourceAttribute.primaryKey = true
} else { } else {
var uniqueKey = [this.through.tableName, this.identifier, this.foreignIdentifier, 'unique'].join('_') var uniqueKey = [this.through.tableName, this.identifier, this.foreignIdentifier, 'unique'].join('_')
targetAttribute.unique = sourceAttribute.unique = uniqueKey targetAttribute.unique = sourceAttribute.unique = uniqueKey
......
...@@ -1334,21 +1334,21 @@ module.exports = (function() { ...@@ -1334,21 +1334,21 @@ module.exports = (function() {
if (this._timestampAttributes.createdAt) { if (this._timestampAttributes.createdAt) {
tail[this._timestampAttributes.createdAt] = { tail[this._timestampAttributes.createdAt] = {
type: DataTypes.DATE, type: DataTypes.DATE,
allowNull: false, allowNull: false,
_autoGenerated: true, _autoGenerated: true,
} }
} }
if (this._timestampAttributes.updatedAt) { if (this._timestampAttributes.updatedAt) {
tail[this._timestampAttributes.updatedAt] = { tail[this._timestampAttributes.updatedAt] = {
type: DataTypes.DATE, type: DataTypes.DATE,
allowNull: false, allowNull: false,
_autoGenerated: true, _autoGenerated: true,
} }
} }
if (this._timestampAttributes.deletedAt) { if (this._timestampAttributes.deletedAt) {
tail[this._timestampAttributes.deletedAt] = { tail[this._timestampAttributes.deletedAt] = {
type: DataTypes.DATE, type: DataTypes.DATE,
_autoGenerated: true, _autoGenerated: true,
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!