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 { SessionCtx } from "./StartSession.js";
|
||||||
import type { ProcDecorator } from "./base.js";
|
import type { ProcDecorator } from "./base.js";
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ export type LoginCtx = {
|
|||||||
userID: number;
|
userID: number;
|
||||||
userName: string;
|
userName: string;
|
||||||
userLevel: number;
|
userLevel: number;
|
||||||
allowServerAction: Set<ServerActionType>;
|
allowServerAction?: Set<ServerActionType>;
|
||||||
loginDate: Date;
|
loginDate: Date;
|
||||||
}
|
}
|
||||||
export const loginCtxSessionKey = 'loginCtx';
|
export const loginCtxSessionKey = 'loginCtx';
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export const LoginByID = POST<RType, EType, QType>(LoginByIDReq)(declProcDecorat
|
|||||||
userID,
|
userID,
|
||||||
userName,
|
userName,
|
||||||
userLevel,
|
userLevel,
|
||||||
allowServerAction: {},
|
allowServerAction: new Set(),
|
||||||
loginDate: new Date(),
|
loginDate: new Date(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export const LoginByToken = POST<RType, EType, QType>(LoginByTokenReq)(declProcD
|
|||||||
userID,
|
userID,
|
||||||
userName,
|
userName,
|
||||||
userLevel,
|
userLevel,
|
||||||
allowServerAction: {},
|
allowServerAction: new Set(),
|
||||||
loginDate: new Date(),
|
loginDate: new Date(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user