Commit 96daae5b authored by 任国军's avatar 任国军

fix course controller

parent 25d9ae8f
Pipeline #16597 passed with stage
in 49 seconds
......@@ -23,19 +23,19 @@ module.exports = app => {
sex: STRING,
openid: STRING,
is_deleted: INTEGER,
created_time: {
created_at: {
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('created_time');
const date = this.getDataValue('created_at');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
updated_time: {
updated_at: {
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('updated_time');
const date = this.getDataValue('updated_at');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
......
......@@ -23,19 +23,19 @@ module.exports = app => {
sex: STRING,
openid: STRING,
is_deleted: INTEGER,
created_time: {
created_at: {
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('created_time');
const date = this.getDataValue('created_at');
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
updated_time: {
updated_at: {
type: DATE,
allowNull: true,
get() {
const date = this.getDataValue('updated_time');
const date = this.getDataValue('updated_at');
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