From 69fa44ba03e4d1944c4ddd74df35ccd0c8de629d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 12 Sep 2022 14:59:50 +0900 Subject: [PATCH] nestjs_auth init.. --- src/todo/todo.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/todo/todo.service.ts b/src/todo/todo.service.ts index 105090d..61871c3 100644 --- a/src/todo/todo.service.ts +++ b/src/todo/todo.service.ts @@ -43,7 +43,7 @@ export class TodoService { } //단일 조회 - async fetchOne(where: Prisma.TodoWhereInput): Promise { + async fetchOne(where: Prisma.TodoWhereInput): Promise { return await this.prisma.todo.findFirstOrThrow({ where: where }) } @@ -56,7 +56,7 @@ export class TodoService { async update(params: { where: Prisma.TodoWhereUniqueInput data: Prisma.TodoUpdateInput - }): Promise { + }): Promise { const { where, data } = params return await this.prisma.todo.update({ data, @@ -65,7 +65,7 @@ export class TodoService { } //단일 삭제 - async remove(where: Prisma.TodoWhereUniqueInput): Promise { + async remove(where: Prisma.TodoWhereUniqueInput) { return await this.prisma.todo.delete({ where }) } }