File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
libraries/nestjs-libraries/src/database/prisma Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ export class PostsRepository {
48
48
searchForMissingThreeHoursPosts ( ) {
49
49
return this . _post . model . post . findMany ( {
50
50
where : {
51
+ integration : {
52
+ refreshNeeded : false ,
53
+ inBetweenSteps : false ,
54
+ disabled : false ,
55
+ } ,
51
56
publishDate : {
52
57
gte : dayjs . utc ( ) . toDate ( ) ,
53
58
lt : dayjs . utc ( ) . add ( 3 , 'hour' ) . toDate ( ) ,
@@ -66,6 +71,11 @@ export class PostsRepository {
66
71
getOldPosts ( orgId : string , date : string ) {
67
72
return this . _post . model . post . findMany ( {
68
73
where : {
74
+ integration : {
75
+ refreshNeeded : false ,
76
+ inBetweenSteps : false ,
77
+ disabled : false ,
78
+ } ,
69
79
organizationId : orgId ,
70
80
publishDate : {
71
81
lte : dayjs ( date ) . toDate ( ) ,
Original file line number Diff line number Diff line change @@ -338,9 +338,14 @@ model Integration {
338
338
@@unique ([organizationId , internalId ] )
339
339
@@index ([rootInternalId ] )
340
340
@@index ([organizationId ] )
341
+ @@index ([providerIdentifier ] )
341
342
@@index ([updatedAt ] )
343
+ @@index ([createdAt ] )
342
344
@@index ([deletedAt ] )
343
345
@@index ([customerId ] )
346
+ @@index ([inBetweenSteps ] )
347
+ @@index ([refreshNeeded ] )
348
+ @@index ([disabled ] )
344
349
}
345
350
346
351
model Signatures {
You can’t perform that action at this time.
0 commit comments