Fixed error when enabling Offers via labs

no-issue

The listOffers method requires an options object. This was missed during
the update.
This commit is contained in:
Fabien O'Carroll 2021-10-21 20:05:42 +02:00
parent c10e76aa2c
commit 8c9b4d18bf

View File

@ -47,7 +47,7 @@ module.exports = {
offersEnabled = labs.isSet('offers');
if (offersEnabled) {
const offers = await this.api.listOffers();
const offers = await this.api.listOffers({});
for (const offer of offers) {
redirectManager.addRedirect(`/${offer.code}`, `/#/portal/offers/${offer.id}`, {permanent: false});
}