diff --git a/src/components/ContentComponents/Report/Report.tsx b/src/components/ContentComponents/Report/Report.tsx index c5e5656d663488cd35b3573f55a0f11cee99d17c..1526d45383ed8dad05c9801445769324b4a17bfa 100644 --- a/src/components/ContentComponents/Report/Report.tsx +++ b/src/components/ContentComponents/Report/Report.tsx @@ -3,6 +3,7 @@ import { translate } from 'cozy-ui/react/I18n' import { AppContext } from 'components/Contexts/AppContextProvider' import UserProfileManager from 'services/userProfileDataManagerService' import { Client, withClient } from 'cozy-client' +import KonnectorStatusService from 'services/konnectorStatusService' interface ReportProps { t: Function @@ -24,6 +25,8 @@ const Report: React.FC<ReportProps> = ({ t, client }: ReportProps) => { updatedUserProfile(e.target.value) } + const kss = new KonnectorStatusService(client) + console.log(kss.getAllTriggers()) return ( <div className="report-root"> <div className="report-content"> diff --git a/src/services/fluidConfigService.ts b/src/services/fluidConfigService.ts index d094f933aa0771b7b41c39e744042960ad9f3a60..96d72f5ef0b92a3eb43b8a497615c3eab1ae5ea3 100644 --- a/src/services/fluidConfigService.ts +++ b/src/services/fluidConfigService.ts @@ -17,7 +17,7 @@ export default class FluidConfig { * @param min Minimum hour for cron * @param max Maximum hour for cron */ - public getCronArgs(min = 8, max = 10): string { + public getCronArgs(min = 8, max = 9): string { const randomHour = Math.floor(Math.random() * (max - min + 1) + min) const randomMinutes = Math.floor(Math.random() * 59) return `0 ${randomMinutes} ${randomHour} * * *`