chore(clean): pass all lint, typecheck and build checks with zero errors
This commit is contained in:
1 parent
6fa1f2c906
commit
a7d842ba10
19 files changed
+5185
-5110
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in new issue
Block a user