chore: remove container registration name (#9137)
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { INotificationModuleService } from "@medusajs/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
ModuleRegistrationName,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
import { ContainerRegistrationKeys, Modules, promiseAll } from "@medusajs/utils"
|
||||
import { get } from "lodash"
|
||||
import { SubscriberArgs, SubscriberConfig } from "../types/subscribers"
|
||||
|
||||
@@ -49,7 +45,7 @@ export default async function configurableNotifications({
|
||||
}: SubscriberArgs<any>) {
|
||||
const logger = container.resolve(ContainerRegistrationKeys.LOGGER)
|
||||
const notificationService: INotificationModuleService = container.resolve(
|
||||
ModuleRegistrationName.NOTIFICATION
|
||||
Modules.NOTIFICATION
|
||||
)
|
||||
|
||||
const handlers = configAsMap[event.name] ?? []
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IPaymentModuleService, ProviderWebhookPayload } from "@medusajs/types"
|
||||
import { ModuleRegistrationName, PaymentWebhookEvents } from "@medusajs/utils"
|
||||
import { Modules, PaymentWebhookEvents } from "@medusajs/utils"
|
||||
import { SubscriberArgs, SubscriberConfig } from "../types/subscribers"
|
||||
|
||||
type SerializedBuffer = {
|
||||
@@ -12,7 +12,7 @@ export default async function paymentWebhookhandler({
|
||||
container,
|
||||
}: SubscriberArgs<ProviderWebhookPayload>) {
|
||||
const paymentService: IPaymentModuleService = container.resolve(
|
||||
ModuleRegistrationName.PAYMENT
|
||||
Modules.PAYMENT
|
||||
)
|
||||
|
||||
const input = event.data
|
||||
|
||||
Reference in New Issue
Block a user