fix: spec

This commit is contained in:
Barış Soner Uşaklı
2020-11-18 23:24:51 -05:00
parent e9585b9be2
commit 8d060065a0
6 changed files with 14 additions and 4 deletions

View File

@@ -10,7 +10,6 @@ const groups = require('../../groups');
const meta = require('../../meta');
const pagination = require('../../pagination');
const events = require('../../events');
const translator = require('../../translator');
const groupsController = module.exports;
@@ -46,7 +45,7 @@ groupsController.get = async function (req, res, next) {
return next();
}
group.isOwner = true;
group.userTitleEscaped = translator.escape(group.userTitle);
const groupNameData = groupNames.map(function (name) {
return {
encodedName: encodeURIComponent(name),