diff --git a/common/locales/en/api-v3.json b/common/locales/en/api-v3.json index 3832ba83cf..f4c490d26b 100644 --- a/common/locales/en/api-v3.json +++ b/common/locales/en/api-v3.json @@ -54,7 +54,7 @@ "canOnlyInviteEmailUuid": "Can only invite using uuids or emails.", "inviteMissingEmail": "Missing email address in invite.", "onlyGroupLeaderChal": "Only the group leader can create challenges", - "pubChalsMinPrize": "Prize must be at least 1 Gem for public challenges.", + "tavChalsMinPrize": "Prize must be at least 1 Gem for Tavern challenges.", "cantAfford": "You can't afford this prize. Purchase more gems or lower the prize amount.", "challengeIdRequired": "\"challengeId\" must be a valid UUID.", "winnerIdRequired": "\"winnerId\" must be a valid UUID.", diff --git a/test/api/v3/integration/challenges/POST-challenges.test.js b/test/api/v3/integration/challenges/POST-challenges.test.js index e296403f4e..283db9333e 100644 --- a/test/api/v3/integration/challenges/POST-challenges.test.js +++ b/test/api/v3/integration/challenges/POST-challenges.test.js @@ -37,7 +37,7 @@ describe('POST /challenges', () => { })).to.eventually.be.rejected.and.eql({ code: 401, error: 'NotAuthorized', - message: t('pubChalsMinPrize'), + message: t('tavChalsMinPrize'), }); }); diff --git a/website/server/controllers/api-v3/challenges.js b/website/server/controllers/api-v3/challenges.js index 1e50a4d439..ca556f7541 100644 --- a/website/server/controllers/api-v3/challenges.js +++ b/website/server/controllers/api-v3/challenges.js @@ -52,7 +52,7 @@ api.createChallenge = { } if (group._id === TAVERN_ID && prize < 1) { - throw new NotAuthorized(res.t('pubChalsMinPrize')); + throw new NotAuthorized(res.t('tavChalsMinPrize')); } if (prize > 0) {