diff --git a/features/blog/backend-api/src/modules/posts/posts.service.ts b/features/blog/backend-api/src/modules/posts/posts.service.ts index 52616d01a..44e68254b 100644 --- a/features/blog/backend-api/src/modules/posts/posts.service.ts +++ b/features/blog/backend-api/src/modules/posts/posts.service.ts @@ -161,14 +161,14 @@ export class PostsService { const saved = await this.postsRepository.save(post); - await this.domainEvents.emitContentCreated({ + await this.domainEvents.emit('content:created', { contentId: saved.id, title: saved.title, slug: saved.slug, content: saved.content, contentType: saved.contentType, domain: saved.domain, - }); + }, saved.id); return saved; } @@ -193,7 +193,7 @@ export class PostsService { relations: ['author', 'category', 'series'], }) as PostEntity; - await this.domainEvents.emitContentUpdated({ + await this.domainEvents.emit('content:updated', { contentId: result.id, title: result.title, slug: result.slug, @@ -203,7 +203,7 @@ export class PostsService { author: result.author?.name ?? undefined, tags: result.tags, metadata: result.metadata, - }); + }, result.id); return result; } @@ -233,7 +233,7 @@ export class PostsService { relations: ['author', 'category', 'series'], }) as PostEntity; - await this.domainEvents.emitContentPublished({ + await this.domainEvents.emit('content:published', { contentId: result.id, title: result.title, slug: result.slug, @@ -244,7 +244,7 @@ export class PostsService { tags: result.tags, publishedAt: (result.publishedAt ?? new Date()).toISOString(), metadata: result.metadata, - }); + }, result.id); return result; } diff --git a/features/trust/frontend-user/src/pages/MyVerificationsPage.tsx b/features/trust/frontend-user/src/pages/MyVerificationsPage.tsx index 918dcc6c7..95cc8b2ee 100644 --- a/features/trust/frontend-user/src/pages/MyVerificationsPage.tsx +++ b/features/trust/frontend-user/src/pages/MyVerificationsPage.tsx @@ -160,7 +160,6 @@ export function MyVerificationsPage() { hasTimestampProof={v.hasTimestampProof} hasPhotoProof={v.hasPhotoProof} hasBookingLink={v.hasBookingLink} - badge={v.badge} />