From c619b850ce53083ddeb9dbd932580c9e1912508f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 9 Mar 2017 17:28:19 +0300 Subject: [PATCH] fix tests --- src/groups/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groups/update.js b/src/groups/update.js index 95ec22753c..9bf53886e5 100644 --- a/src/groups/update.js +++ b/src/groups/update.js @@ -169,7 +169,7 @@ module.exports = function (Groups) { Groups.existsBySlug(newSlug, next); }, function (exists, next) { - next(!exists ? new Error('[[error:group-already-exists]]') : null); + next(exists ? new Error('[[error:group-already-exists]]') : null); }, ], callback); }