Commit fdb3d4d6 authored by Hsinli's avatar Hsinli

addd

parent 1543d0a7
Pipeline #19886 passed with stage
in 2 seconds
...@@ -27,7 +27,7 @@ module.exports = app => { ...@@ -27,7 +27,7 @@ module.exports = app => {
type: DATE, type: DATE,
get() { get() {
const date = this.getDataValue('source_time'); const date = this.getDataValue('source_time');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined; return date;
}, },
}, },
content: { content: {
...@@ -102,9 +102,9 @@ module.exports = app => { ...@@ -102,9 +102,9 @@ module.exports = app => {
}, },
}, },
}, { }, {
timestamps: false, timestamps: false,
tableName: 'cd_news', tableName: 'cd_news',
}); });
return CdNews; return CdNews;
......
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