ts type error 수정
This commit is contained in:
@@ -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<ServerActionType>;
|
||||
allowServerAction?: Set<ServerActionType>;
|
||||
loginDate: Date;
|
||||
}
|
||||
export const loginCtxSessionKey = 'loginCtx';
|
||||
|
||||
@@ -50,7 +50,7 @@ export const LoginByID = POST<RType, EType, QType>(LoginByIDReq)(declProcDecorat
|
||||
userID,
|
||||
userName,
|
||||
userLevel,
|
||||
allowServerAction: {},
|
||||
allowServerAction: new Set(),
|
||||
loginDate: new Date(),
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export const LoginByToken = POST<RType, EType, QType>(LoginByTokenReq)(declProcD
|
||||
userID,
|
||||
userName,
|
||||
userLevel,
|
||||
allowServerAction: {},
|
||||
allowServerAction: new Set(),
|
||||
loginDate: new Date(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user