fix(build): remove cross import from client to server for UserType

pull/655/head
sct 4 years ago
parent 492e19df40
commit 23624bd144

@ -0,0 +1,4 @@
export enum UserType {
PLEX = 1,
LOCAL = 2,
}

@ -6,7 +6,7 @@ import { isAuthenticated } from '../middleware/auth';
import { Permission } from '../lib/permissions';
import logger from '../logger';
import { getSettings } from '../lib/settings';
import { UserType } from '../../src/hooks/useUser';
import { UserType } from '../constants/user';
const authRoutes = Router();

@ -1,10 +1,6 @@
import useSwr from 'swr';
import { hasPermission, Permission } from '../../server/lib/permissions';
export enum UserType {
PLEX = 1,
LOCAL = 2,
}
import { UserType } from '../../server/constants/user';
export interface User {
id: number;
@ -15,7 +11,7 @@ export interface User {
userType: number;
}
export { Permission };
export { Permission, UserType };
interface UserHookResponse {
user?: User;

Loading…
Cancel
Save