Skip to content

Commit

Permalink
refs 111686: use axios-retry
Browse files Browse the repository at this point in the history
  • Loading branch information
arafubeatbox committed Jan 6, 2023
1 parent d5795c1 commit 97e235a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/app/src/server/service/questionnaire-cron.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import axios from '~/utils/axios';
import axiosRetry from 'axios-retry';

import { getRandomIntInRange } from '~/utils/rand';
import { sleep } from '~/utils/sleep';

const axios = require('axios').default;
const nodeCron = require('node-cron');

axiosRetry(axios, { retries: 3 });

class QuestionnaireCronService {

crowi: any;
Expand Down

0 comments on commit 97e235a

Please sign in to comment.