chore(clean): pass all lint, typecheck and build checks with zero errors
Deploy Canina / deploy (push) Successful in 35s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
parsa aghaei committed 2026-09-02 10:57:21 +03:30
1 parent 6fa1f2c906
commit a7d842ba10
19 files changed
+5185 -5110

No files matched your search

+7 -1
View File
@@ -82,7 +82,13 @@ export class BlogsController {
@ApiOperation({ summary: 'ارسال نظر برای مقاله' })
addComment(
@Param('slug') slug: string,
@Body() body: { userName: string; email?: string; content: string; userId?: string },
@Body()
body: {
userName: string;
email?: string;
content: string;
userId?: string;
},
) {
return this.blogsService.addComment(slug, body);
}
+6 -1
View File
@@ -357,7 +357,12 @@ export class BlogsService {
async addComment(
slug: string,
data: { userName: string; email?: string; content: string; userId?: string },
data: {
userName: string;
email?: string;
content: string;
userId?: string;
},
) {
const blog = await this.prisma.blog.findUnique({
where: { slug },