diff --git a/packages/medusa-plugin-restock-notification/src/services/restock-notification.js b/packages/medusa-plugin-restock-notification/src/services/restock-notification.js index 014c38b748..d91c576785 100644 --- a/packages/medusa-plugin-restock-notification/src/services/restock-notification.js +++ b/packages/medusa-plugin-restock-notification/src/services/restock-notification.js @@ -34,13 +34,16 @@ class RestockNotificationService extends BaseService { return this } - const cloned = new RestockNotificationService({ - manager: transactionManager, - options: this.options_, - eventBusService: this.eventBus_, - productVariantService: this.productVariantService_, - restockNotificationModel: this.restockNotificationModel_, - }) + const cloned = new RestockNotificationService( + { + manager: transactionManager, + options: this.options_, + eventBusService: this.eventBus_, + productVariantService: this.productVariantService_, + restockNotificationModel: this.restockNotificationModel_, + }, + this.options_ + ) cloned.transactionManager_ = transactionManager