From 549993e4fe6b50d9045695834bc4ac7f6fec51a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 25 Jun 2024 15:48:52 +0900 Subject: [PATCH] revert --- src/services/parent/authService.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/services/parent/authService.ts b/src/services/parent/authService.ts index 66bcc51..a2096fa 100644 --- a/src/services/parent/authService.ts +++ b/src/services/parent/authService.ts @@ -8,7 +8,7 @@ import { TokenResponse } from "@src/models/Token"; const logger = new Logger(); logger.setTag('authService'); -async function registUser(email: string, password: string, homeGroupId?: string): Promise { +async function registUser(email: string, password: string, homeGroupId?: string): Promise { const hashedPassword = bcrypt.hashSync(password, 10); @@ -41,10 +41,7 @@ async function registUser(email: string, password: string, homeGroupId?: string) }); const user = await registUser; - const response: TokenResponse = { - accessToken: await issueTokenByUserId(user.id) - }; - return Promise.resolve(response) + return issueTokenByUserId(user.id); } async function loginUser(email: string, password: string): Promise {