From 021458afed0dd4553a00a5e5654992b19970aa71 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Mon, 26 Nov 2018 22:18:03 +0000 Subject: eslint fixes --- server/lib/permissions/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/lib/permissions') diff --git a/server/lib/permissions/index.js b/server/lib/permissions/index.js index 6eb079f..79ce6b1 100644 --- a/server/lib/permissions/index.js +++ b/server/lib/permissions/index.js @@ -33,16 +33,16 @@ function updatePermissionDatabase () { */ function upsert (model, newItem, where) { return model - .findOne({where: where}) + .findOne({ where: where }) .then(function (foundItem) { if (!foundItem) { return model .create(newItem) - .then(function (item) { return {item: item, created: true} }) + .then(function (item) { return { item: item, created: true } }) } return model - .update(newItem, {where: where}) - .then(function (item) { return {item: item, created: false} }) + .update(newItem, { where: where }) + .then(function (item) { return { item: item, created: false } }) }) } -- cgit v1.2.3-55-g7522