mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
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:
parent
c10e76aa2c
commit
8c9b4d18bf
@ -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});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user