mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(server): use session model in auth service (#9660)
This commit is contained in:
@@ -4,6 +4,8 @@ import { SessionModel } from './session';
|
||||
import { UserModel } from './user';
|
||||
import { VerificationTokenModel } from './verification-token';
|
||||
|
||||
export * from './session';
|
||||
export * from './user';
|
||||
export * from './verification-token';
|
||||
|
||||
const models = [UserModel, SessionModel, VerificationTokenModel] as const;
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from '../base';
|
||||
import type { Payload } from '../base/event/def';
|
||||
import { Permission } from '../core/permission';
|
||||
import { Quota_FreePlanV1_1 } from '../core/quota';
|
||||
import { Quota_FreePlanV1_1 } from '../core/quota/schema';
|
||||
|
||||
const publicUserSelect = {
|
||||
id: true,
|
||||
|
||||
Reference in New Issue
Block a user