Merge pull request #86 from Mueller-Patrick/develop

Hotfix Deploy
This commit is contained in:
Patrick 2021-06-15 11:51:53 +02:00 committed by GitHub
commit d9ad99cb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,8 @@ crawlingstatusRouter.get('/', async (req: Request, res: Response) => {
try { try {
// Authenticate user // Authenticate user
const user_ip = req.connection.remoteAddress ?? ''; const user_ip = req.connection.remoteAddress ?? '';
const session_id = req.body.session_id; const session_id = req.params.session_id;
const session_key = req.body.session_key; const session_key = req.params.session_key;
const user = await UserService.checkSession(session_id, session_key, user_ip); const user = await UserService.checkSession(session_id, session_key, user_ip);
if (!user.is_admin) { if (!user.is_admin) {