浏览代码

fix: storage internalSchedule typo

NGPixel 5 年之前
父节点
当前提交
bade9430f2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/models/storage.js

+ 2 - 2
server/models/storage.js

@@ -152,11 +152,11 @@ module.exports = class Storage extends Model {
           }
 
           // -> Set internal recurring sync job
-          if (targetDef.intervalSchedule && targetDef.intervalSchedule !== `P0D`) {
+          if (targetDef.internalSchedule && targetDef.internalSchedule !== `P0D`) {
             WIKI.scheduler.registerJob({
               name: `sync-storage`,
               immediate: false,
-              schedule: target.intervalSchedule,
+              schedule: target.internalSchedule,
               repeat: true
             }, target.key)
           }