Now follows our airbnb linting schema.

This commit is contained in:
2017-10-26 14:52:00 +02:00
parent 6dd9cf7083
commit e417fedece
5 changed files with 49 additions and 48 deletions

View File

@@ -1,4 +1,5 @@
const RequestRepository = require('src/plex/requestRepository.js');
const requestRepository = new RequestRepository();
/**
@@ -11,12 +12,12 @@ function historyController(req, res) {
const user = req.loggedInUser;
requestRepository.fetchRequested()
.then((requestedItems) => {
res.send({ success: true, requestedItems });
})
.catch((error) => {
res.status(401).send({ success: false, error: error.message });
});
.then((requestedItems) => {
res.send({ success: true, requestedItems });
})
.catch((error) => {
res.status(401).send({ success: false, error: error.message });
});
}
module.exports = historyController;