Просмотр исходного кода

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

caipin 1 месяц назад
Родитель
Сommit
ecafa89cb2
1 измененных файлов с 2 добавлено и 2 удалено
  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()
                         });
                     }
                 }