guhongwei 3 tahun lalu
induk
melakukan
28cff1e33c
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 0 1
      app/model/patent/patentearly.js
  2. 1 1
      app/schedule/patentearly.js

+ 0 - 1
app/model/patent/patentearly.js

@@ -18,7 +18,6 @@ schema.index({ id: 1 });
 schema.index({ parent_id: 1 });
 schema.index({ name: 1 });
 schema.index({ inventor: 1 });
-schema.index({ to_id: 1 });
 schema.index({ 'meta.createdAt': 1 });
 schema.plugin(metaPlugin);
 module.exports = app => {

+ 1 - 1
app/schedule/patentearly.js

@@ -2,7 +2,7 @@
 module.exports = {
   schedule: {
     // interval: '30s', // 1 分钟间隔
-    cron: '0 0 * * * *',
+    cron: '0 30 9 * *',
     type: 'all', // 指定所有的 worker 都需要执行
   },
   async task(ctx) {