Fixed issue where the user was not being saved alongside the request. Also fixed what the list of requests are sorted by.

This commit is contained in:
2018-03-07 15:35:55 +01:00
parent ab2d3c6756
commit 453727db1b
2 changed files with 4 additions and 4 deletions

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.headers.loggedInUser;
requestRepository.sendRequest(id, type, ip, user_agent, user)
.then(() => {