From 03de92baee985e2748f21c6d7721ea3ec1681220 Mon Sep 17 00:00:00 2001 From: "Ilia A. Amiri" <37903573+iliaamiri@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:22:47 -0800 Subject: [PATCH] fix the small changes --- src/auth/controllers/auth.controller.ts | 6 +++--- src/comments/services/comments/comments.service.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/auth/controllers/auth.controller.ts b/src/auth/controllers/auth.controller.ts index f24e5e6..ce23320 100644 --- a/src/auth/controllers/auth.controller.ts +++ b/src/auth/controllers/auth.controller.ts @@ -1,6 +1,6 @@ import { Body, Controller, Inject, Post, UseGuards } from "@nestjs/common"; import { ApiBearerAuth, ApiTags } from "@nestjs/swagger"; -import { SignInPayloadDto, SignUpPayloadDto } from "../dtos"; +import { SignInPayloadDto, SignTokenDto, SignUpPayloadDto } from "../dtos"; import { IAuthService } from "../services/auth.service.interface"; import { AuthGuard } from "@nestjs/passport"; import { _$ } from "../../_domain/injectableTokens"; @@ -14,12 +14,12 @@ export class AuthController { constructor(@Inject(_$.IAuthService) private _authService: IAuthService) {} @Post("signup") - public signup(@Body() signUpPayloadDto: SignUpPayloadDto) { + public signup(@Body() signUpPayloadDto: SignUpPayloadDto): Promise { return this._authService.signup(signUpPayloadDto); } @Post("signin") - public signin(@Body() signInPayloadDto: SignInPayloadDto) { + public signin(@Body() signInPayloadDto: SignInPayloadDto): Promise { return this._authService.signIn(signInPayloadDto); } diff --git a/src/comments/services/comments/comments.service.ts b/src/comments/services/comments/comments.service.ts index c7f1b68..6d7aafa 100644 --- a/src/comments/services/comments/comments.service.ts +++ b/src/comments/services/comments/comments.service.ts @@ -19,8 +19,9 @@ import { VoteType, } from "../../dtos"; import { Comment } from "../../models"; -import { CommentToSelfRelTypes, DeletedProps, RepliedProps } from "../../models/toSelf"; +import { CommentToSelfRelTypes, DeletedProps } from "../../models/toSelf"; import { ICommentsService } from "./comments.service.interface"; + @Injectable({ scope: Scope.REQUEST }) export class CommentsService implements ICommentsService { private readonly _logger = new Logger(CommentsService.name);