From ae7701ee1897b37c609ec529c574ef821c8eaa39 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 19 Aug 2023 04:49:26 +0000 Subject: [PATCH] =?UTF-8?q?ts=20type=20error=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/ProcDecorator/ReqLogin.ts | 4 ++-- server/api/RootAPI/Login/LoginByID.ts | 2 +- server/api/RootAPI/Login/LoginByToken.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/ProcDecorator/ReqLogin.ts b/server/ProcDecorator/ReqLogin.ts index a8d8fe4..df30249 100644 --- a/server/ProcDecorator/ReqLogin.ts +++ b/server/ProcDecorator/ReqLogin.ts @@ -1,4 +1,4 @@ -import { ServerActionType } from "../schema/gateway/User.js"; +import type { ServerActionType } from "../schema/gateway/User.js"; import type { SessionCtx } from "./StartSession.js"; import type { ProcDecorator } from "./base.js"; @@ -6,7 +6,7 @@ export type LoginCtx = { userID: number; userName: string; userLevel: number; - allowServerAction: Set; + allowServerAction?: Set; loginDate: Date; } export const loginCtxSessionKey = 'loginCtx'; diff --git a/server/api/RootAPI/Login/LoginByID.ts b/server/api/RootAPI/Login/LoginByID.ts index 3962935..988d2ff 100644 --- a/server/api/RootAPI/Login/LoginByID.ts +++ b/server/api/RootAPI/Login/LoginByID.ts @@ -50,7 +50,7 @@ export const LoginByID = POST(LoginByIDReq)(declProcDecorat userID, userName, userLevel, - allowServerAction: {}, + allowServerAction: new Set(), loginDate: new Date(), } diff --git a/server/api/RootAPI/Login/LoginByToken.ts b/server/api/RootAPI/Login/LoginByToken.ts index 1e77732..14f4bb0 100644 --- a/server/api/RootAPI/Login/LoginByToken.ts +++ b/server/api/RootAPI/Login/LoginByToken.ts @@ -35,7 +35,7 @@ export const LoginByToken = POST(LoginByTokenReq)(declProcD userID, userName, userLevel, - allowServerAction: {}, + allowServerAction: new Set(), loginDate: new Date(), }