mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(build): remove cross import from client to server for UserType
This commit is contained in:
4
server/constants/user.ts
Normal file
4
server/constants/user.ts
Normal file
@@ -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;
|
||||
|
Reference in New Issue
Block a user