Commit 4ebf7fea authored by 李尚科's avatar 李尚科

fix

parent a771e402
Pipeline #14816 passed with stage
in 40 seconds
...@@ -66,7 +66,7 @@ module.exports = app => { ...@@ -66,7 +66,7 @@ module.exports = app => {
// }, // },
created_at: { created_at: {
type: DATE, type: DATE,
allowNull: false, allowNull: true,
get() { get() {
const date = this.getDataValue('created_at'); const date = this.getDataValue('created_at');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined; return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment