Explorar o código

feat: 更新weapp关注接口,简化创建时间处理逻辑

caipin hai 1 mes
pai
achega
ecafa89cb2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/weapp_attention.js

+ 2 - 2
app/service/weapp_attention.js

@@ -20,7 +20,7 @@ module.exports = app => {
                         if (existingRecord.status === 0) {
                             await conn.update(this.tableName, {
                                 status: 1,
-                                create_time: this.app.formatDate(new Date())
+                                create_time: new Date()
                             }, {
                                 where: {
                                     id: existingRecord.id
@@ -32,7 +32,7 @@ module.exports = app => {
                             project_account_id: userId,
                             tender_id: tenderId,
                             status: 1,
-                            create_time: this.app.formatDate(new Date())
+                            create_time: new Date()
                         });
                     }
                 }