Procházet zdrojové kódy

fix: get syncInterval from model instead of module data (#3003)

Paul před 4 roky
rodič
revize
806e4e8f11
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      server/graph/resolvers/storage.js

+ 1 - 1
server/graph/resolvers/storage.js

@@ -19,7 +19,7 @@ module.exports = {
           ...targetInfo,
           ...tgt,
           hasSchedule: (targetInfo.schedule !== false),
-          syncInterval: targetInfo.syncInterval || targetInfo.schedule || 'P0D',
+          syncInterval: tgt.syncInterval || targetInfo.schedule || 'P0D',
           syncIntervalDefault: targetInfo.schedule,
           config: _.sortBy(_.transform(tgt.config, (res, value, key) => {
             const configData = _.get(targetInfo.props, key, false)