Revert "moving developer-only strings to api messages (#10188)"
This reverts commit a42cb0e3ab. Testing hypothesis that this was causing Staging to break.
This commit is contained in:
@@ -27,7 +27,6 @@ import {
|
||||
createChallenge,
|
||||
cleanUpTask,
|
||||
} from '../../libs/challenges';
|
||||
import apiMessages from '../../libs/apiMessages';
|
||||
|
||||
let api = {};
|
||||
|
||||
@@ -188,7 +187,7 @@ api.createChallenge = {
|
||||
async handler (req, res) {
|
||||
let user = res.locals.user;
|
||||
|
||||
req.checkBody('group', apiMessages('groupIdRequired')).notEmpty();
|
||||
req.checkBody('group', res.t('groupIdRequired')).notEmpty();
|
||||
|
||||
const validationErrors = req.validationErrors();
|
||||
if (validationErrors) throw validationErrors;
|
||||
@@ -445,7 +444,7 @@ api.getGroupChallenges = {
|
||||
let user = res.locals.user;
|
||||
let groupId = req.params.groupId;
|
||||
|
||||
req.checkParams('groupId', apiMessages('groupIdRequired')).notEmpty();
|
||||
req.checkParams('groupId', res.t('groupIdRequired')).notEmpty();
|
||||
|
||||
let validationErrors = req.validationErrors();
|
||||
if (validationErrors) throw validationErrors;
|
||||
|
||||
Reference in New Issue
Block a user