Skip to content

Commit

Permalink
set response code to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Jul 4, 2015
1 parent ab47161 commit c9ecaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/notifications-api.js
Expand Up @@ -16,12 +16,12 @@ function configure (app, wares, ctx) {

if (app.enabled('api')) {
// Create and store new sgv entries
api.get('/notifications/ack', wares.verifyAuthorization, function (req, res, next) {
api.get('/notifications/ack', wares.verifyAuthorization, function (req, res) {
var level = Number(req.query.level);
var time = req.query.time && Number(req.query.time);
console.info('got api ack, level: ', level, ', time: ', time, ', query: ', req.query);
ctx.notifications.ack(level, time, true);
next( );
res.sendStatus(200);
});
}

Expand Down

0 comments on commit c9ecaa0

Please sign in to comment.