Skip to content

Commit ce27cb9

Browse files
committed
feat: disable resting logic in prod for now
1 parent 047c464 commit ce27cb9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/cron/validateActiveUsers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Cron } from './cron';
22
import {
33
getAbsoluteDifferenceInDays,
4+
isProd,
45
SUCCESSFUL_CIO_SYNC_DATE,
56
syncSubscriptionsWithActiveState,
67
} from '../common';
@@ -25,6 +26,11 @@ const runSync = async (con: DataSource, runDate: Date) => {
2526
const cron: Cron = {
2627
name: 'validate-active-users',
2728
handler: async (con) => {
29+
if (isProd) {
30+
// currently skip in prod until new resting query and logic is implemented and tested
31+
return;
32+
}
33+
2834
const runDate = subDays(new Date(), 1);
2935
const lastSuccessfulDate = await getRedisObject(SUCCESSFUL_CIO_SYNC_DATE);
3036

0 commit comments

Comments
 (0)