Skip to content

Commit

Permalink
feat: delete post
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Jan 7, 2025
1 parent a801b59 commit ba84a67
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba84a67

Please sign in to comment.