|
@@ -1,7 +1,5 @@
|
|
|
import axios from '~/utils/axios';
|
|
import axios from '~/utils/axios';
|
|
|
|
|
|
|
|
-import Crowi from '../crowi';
|
|
|
|
|
-
|
|
|
|
|
const nodeCron = require('node-cron');
|
|
const nodeCron = require('node-cron');
|
|
|
|
|
|
|
|
const getRandomInt = (min: number, max: number): number => {
|
|
const getRandomInt = (min: number, max: number): number => {
|
|
@@ -20,7 +18,8 @@ class QuestionnaireCronService {
|
|
|
|
|
|
|
|
maxHoursUntilRequest: number;
|
|
maxHoursUntilRequest: number;
|
|
|
|
|
|
|
|
- constructor(crowi: Crowi) {
|
|
|
|
|
|
|
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
|
|
|
+ constructor(crowi) {
|
|
|
this.growiQuestionnaireUri = crowi.configManager?.getConfig('crowi', 'app:growiQuestionnaireUri');
|
|
this.growiQuestionnaireUri = crowi.configManager?.getConfig('crowi', 'app:growiQuestionnaireUri');
|
|
|
this.cronSchedule = crowi.configManager?.getConfig('crowi', 'app:questionnaireCronSchedule');
|
|
this.cronSchedule = crowi.configManager?.getConfig('crowi', 'app:questionnaireCronSchedule');
|
|
|
this.maxHoursUntilRequest = crowi.configManager?.getConfig('crowi', 'app:questionnaireCronMaxHoursUntilRequest');
|
|
this.maxHoursUntilRequest = crowi.configManager?.getConfig('crowi', 'app:questionnaireCronMaxHoursUntilRequest');
|