Skip to content
Snippets Groups Projects
Commit 90a8254d authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

remove console log from getOwnUser

parent ccfa1f88
No related branches found
No related tags found
3 merge requests!24Auth, Profile, News, Entry Card, File management,!21update feature/news_api branch,!19Profile and Entry Card
...@@ -3,7 +3,6 @@ import { NextFunction, Request, Response } from "express"; ...@@ -3,7 +3,6 @@ import { NextFunction, Request, Response } from "express";
import Profile from "../../models/ProfileSchema"; import Profile from "../../models/ProfileSchema";
const getOwnUser = () => (req: Request, res: Response, next: NextFunction) => { const getOwnUser = () => (req: Request, res: Response, next: NextFunction) => {
console.log(req.session!.user);
Profile.findOne({ external_id: req.session!.user!.id }, (error, profile) => { Profile.findOne({ external_id: req.session!.user!.id }, (error, profile) => {
if (error) { if (error) {
console.warn(error); console.warn(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment