소스 검색

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

caipin 2 달 전
부모
커밋
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()
                         });
                     }
                 }