Update page.mdx (#8425)
corrected example to use createNotifications vs create
This commit is contained in:
1 parent
80e44576fc
commit
a392b2be0c
1 file changed
+1
-1
@@ -141,7 +141,7 @@ export default async function productCreateHandler({
|
|||||||
const notificationModuleService: INotificationModuleService =
|
const notificationModuleService: INotificationModuleService =
|
||||||
container.resolve(ModuleRegistrationName.NOTIFICATION)
|
container.resolve(ModuleRegistrationName.NOTIFICATION)
|
||||||
|
|
||||||
await notificationModuleService.create({
|
await notificationModuleService.createNotifications({
|
||||||
to: "test@gmail.com",
|
to: "test@gmail.com",
|
||||||
channel: "email",
|
channel: "email",
|
||||||
template: "product-created",
|
template: "product-created",
|
||||||
|
|||||||
Reference in new issue
Block a user