Skip to content

Commit 272d61c

Browse files
committed
revert me: Ignore github archive incremental sync for old integrations
1 parent 4421c01 commit 272d61c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

services/libs/data-access-layer/src/old/apps/integration_run_worker/integrationRun.repo.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import moment from 'moment'
2+
13
import { DbStore, RepositoryBase } from '@crowd/database'
24
import { Logger } from '@crowd/logging'
3-
import { IntegrationRunState, IntegrationStreamState } from '@crowd/types'
5+
import { IntegrationRunState, IntegrationStreamState, IntegrationType } from '@crowd/types'
46

57
import {
68
IGenerateStreamsData,
@@ -116,6 +118,17 @@ export default class IntegrationRunRepository extends RepositoryBase<Integration
116118
},
117119
)
118120

121+
if (!results) {
122+
return null
123+
}
124+
125+
if (
126+
results.type === IntegrationType.GITHUB &&
127+
moment(results.updatedAt).isBefore(moment('2024-12-10'))
128+
) {
129+
return null
130+
}
131+
119132
return results
120133
}
121134

0 commit comments

Comments
 (0)