Api request #84

Merged
KevinMidboe merged 39 commits from api_request into master 2018-03-19 14:46:19 +00:00
Showing only changes of commit 1a4aefda14 - Show all commits

View File

@@ -15,7 +15,7 @@ function submitRequestController(req, res) {
const type = req.query.type;
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
const user_agent = req.headers['user-agent'];
const user = req.headers.loggedInUser;
const user = req.loggedInUser;
requestRepository.sendRequest(id, type, ip, user_agent, user)
.then(() => {