0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed references to Offers labs flag

refs https://github.com/TryGhost/Team/issues/1115

This flag is now enabled by default - so we can clean up all uses of it.
This commit is contained in:
Fabien O'Carroll 2021-11-03 16:13:11 +02:00
parent 39c31b1824
commit a9871f1ab9

View file

@ -141,7 +141,7 @@ module.exports = class RouterController {
}
let couponId = null;
if (offerId && this.labsService.isSet('offers')) {
if (offerId) {
try {
const offer = await this._offersAPI.getOffer({id: offerId});
const tier = (await this._productRepository.get(offer.tier)).toJSON();