diff --git a/src/routes/notifications.js b/src/routes/notifications.js index 957f46fa2..7f711f486 100644 --- a/src/routes/notifications.js +++ b/src/routes/notifications.js @@ -52,7 +52,7 @@ async function update(req, res, next) { assert.strictEqual(typeof req.notification, 'object'); assert.strictEqual(typeof req.body, 'object'); - if (typeof req.body.acknowledged !== 'boolean') return next(new HttpError(400, 'acknowledged must be a booliean')); + if (typeof req.body.acknowledged !== 'boolean') return next(new HttpError(400, 'acknowledged must be a boolean')); const [error] = await safe(notifications.update(req.notification, { acknowledged: req.body.acknowledged })); if (error) return next(BoxError.toHttpError(error));