File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
services/libs/data-access-layer/src/old/apps/integration_run_worker Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ import moment from 'moment'
2
+
1
3
import { DbStore , RepositoryBase } from '@crowd/database'
2
4
import { Logger } from '@crowd/logging'
3
- import { IntegrationRunState , IntegrationStreamState } from '@crowd/types'
5
+ import { IntegrationRunState , IntegrationStreamState , IntegrationType } from '@crowd/types'
4
6
5
7
import {
6
8
IGenerateStreamsData ,
@@ -116,6 +118,17 @@ export default class IntegrationRunRepository extends RepositoryBase<Integration
116
118
} ,
117
119
)
118
120
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
+
119
132
return results
120
133
}
121
134
You can’t perform that action at this time.
0 commit comments