mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
build(deps): bump dependencies (#2796)
This commit is contained in:

committed by
GitHub

parent
821bb79d83
commit
0fa84eae8d
@@ -1,11 +1,11 @@
|
||||
import { getRepository } from 'typeorm';
|
||||
import { getRepository } from '../datasource';
|
||||
import { User } from '../entity/User';
|
||||
import type { Permission, PermissionCheckOptions } from '../lib/permissions';
|
||||
import { getSettings } from '../lib/settings';
|
||||
|
||||
export const checkUser: Middleware = async (req, _res, next) => {
|
||||
const settings = getSettings();
|
||||
let user: User | undefined;
|
||||
let user: User | undefined | null;
|
||||
|
||||
if (req.header('X-API-Key') === settings.main.apiKey) {
|
||||
const userRepository = getRepository(User);
|
||||
|
Reference in New Issue
Block a user