Skip to content

Commit

Permalink
fix(notification): Only use enabled providers for notis (medusajs#10659)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl authored Dec 18, 2024
1 parent c7008bb commit 9133957
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default class NotificationProviderService extends ModulesSdkUtils.MedusaI
TOutput = TChannel extends string[] ? Provider[] : Provider | undefined
>(channels: TChannel): Promise<TOutput> {
if (!this.providersCache) {
const providers = await this.notificationProviderRepository_.find()
const providers = await this.notificationProviderRepository_.find({
where: { is_enabled: true },
})

this.providersCache = new Map(
providers.flatMap((provider) =>
Expand Down

0 comments on commit 9133957

Please sign in to comment.