Skip to content

Commit 9c63b56

Browse files
committed
Remove the exclution of deletedAt
1 parent d2fb0ac commit 9c63b56

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/models/Interview.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,7 @@ module.exports = (sequelize) => {
146146
deletedAt: 'deletedAt',
147147
createdAt: 'createdAt',
148148
updatedAt: 'updatedAt',
149-
timestamps: true,
150-
defaultScope: {
151-
attributes: {
152-
exclude: ['deletedAt']
153-
}
154-
},
155-
hooks: {
156-
afterCreate: (interview) => {
157-
delete interview.dataValues.deletedAt
158-
}
159-
}
149+
timestamps: true
160150
}
161151
)
162152

0 commit comments

Comments
 (0)