Skip to content

Commit d49dc15

Browse files
committed
Added peach feature flag to peach sync job
Signed-off-by: qhanson55 <quinn.hanson@gov.bc.ca>
1 parent 9f6ed56 commit d49dc15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/peachSync.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { syncPeachRecords } from './src/controllers/peach.ts';
22
import { sendPermitUpdateNotifications } from './src/controllers/permit.ts';
33
import { getLogger } from './src/utils/log.ts';
4+
import { state } from './state.ts';
45

56
import type { Permit } from './src/types';
67

78
const log = getLogger(module.filename);
89

910
async function syncPeachToPcns() {
11+
if (!state.features.peach) return;
12+
1013
const started = Date.now();
1114
let updatedPermits: Permit[] = [];
1215

0 commit comments

Comments
 (0)