fix: storage internalSchedule typo

This commit is contained in:
NGPixel 2020-04-24 00:37:50 -04:00
parent d1dd1f195b
commit bade9430f2

View File

@ -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)
}