Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: no posts with a deleted integration

Nevo Davida098d612af67
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts
index 4d7ab250f..264546617 100644
--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts
+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.repository.ts
@@ -132,10 +132,7 @@ export class PostsRepository {
OR: [
{
organizationId: orgId,
- },
- {
- submittedForOrganizationId: orgId,
- },
+ }
],
},
{
@@ -154,6 +151,9 @@ export class PostsRepository {
],
},
],
+ integration: {
+ deletedAt: null,
+ },
deletedAt: null,
parentPostId: null,
...(query.customer