update API's monthly Gem cap messages to use the friendly website version (#12150)

* allow subscribers to buy their final monthly gem

* replace old montly Gem cap messages with friendlier new ones
This commit is contained in:
Alys
2020-05-03 05:49:38 +10:00
committed by GitHub
parent 1c94c1a968
commit aeba14f2e9
3 changed files with 3 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ export class BuyGemOperation extends AbstractGoldItemOperation { // eslint-disab
super.canUserPurchase(user, item);
if (user.purchased.plan.gemsBought >= this.convCap) {
throw new NotAuthorized(this.i18n('reachedGoldToGemCap', { convCap: this.convCap }));
throw new NotAuthorized(this.i18n('maxBuyGems', { convCap: this.convCap }));
}
if (user.purchased.plan.gemsBought + this.quantity > this.convCap) {