From 1d8532bff392d9ce0a33a9ec22fdf56206f919b4 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Sat, 27 May 2023 02:56:53 +0200 Subject: [PATCH] fix username assignment in comments for issue --- apps/backend/src/issues/issues.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/issues/issues.service.ts b/apps/backend/src/issues/issues.service.ts index 39066f5..f37b910 100644 --- a/apps/backend/src/issues/issues.service.ts +++ b/apps/backend/src/issues/issues.service.ts @@ -20,9 +20,9 @@ export class IssuesService { return this.repository.save(issue); } - async addComment(id: string, { content }: CreateIssueCommentDto) { + async addComment(id: string, dto: CreateIssueCommentDto) { const issue = await this.findOne(id); - const comment = this.comments.create({ content }); + const comment = this.comments.create(dto); comment.issue = Promise.resolve(issue); return this.comments.save(comment); }