guhongwei 3 năm trước cách đây
mục cha
commit
28cff1e33c

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

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

+ 1 - 1
app/schedule/patentearly.js

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