Skip to content

Commit

Permalink
Fix admin controller test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Aug 12, 2017
1 parent dd748dd commit 56bb0dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v1/controllers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
authUtils.isAdmin(req)
.then((ok) => {
if (!ok) {
u.forbidden(next);
return u.forbidden(next);
}

const enabled = featureToggles
Expand All @@ -51,8 +51,8 @@ module.exports = {
}

return sampleStoreInit.eradicate()
.then(() => sampleStoreInit.populate())
.then(() => res.status(httpStatus.NO_CONTENT).json());
.then(() => sampleStoreInit.populate())
.then(() => res.status(httpStatus.NO_CONTENT).json());
})
.catch(() => u.forbidden(next));
},
Expand Down

0 comments on commit 56bb0dc

Please sign in to comment.