Skip to content

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

feat: delete post

Nevo Davidba84a670951c
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
index 38a1cf687..d4320b6e8 100644
--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
@@ -505,7 +505,10 @@ export class PostsService {
const post = await this._postRepository.deletePost(orgId, group);
if (post?.id) {
await this._workerServiceProducer.delete('post', post.id);
+ return {id: post.id};
}
+
+ return {error: true};
}
async countPostsFromDay(orgId: string, date: Date) {