chore: Cleanup manager decorator usage (#9181)

This commit is contained in:
Adrien de Peretti
2024-09-18 14:16:20 +02:00
committed by GitHub
parent adbeb9cc1d
commit 81d3ae01c7
20 changed files with 362 additions and 359 deletions
@@ -66,7 +66,7 @@ export default class NotificationModuleService
sharedContext?: Context
): Promise<NotificationTypes.NotificationDTO>
@InjectManager("baseRepository_")
@InjectManager()
@EmitEvents()
async createNotifications(
data:
@@ -95,7 +95,7 @@ export default class NotificationModuleService
return Array.isArray(data) ? serialized : serialized[0]
}
@InjectManager("baseRepository_")
@InjectManager()
protected async createNotifications_(
data: NotificationTypes.CreateNotificationDTO[],
@MedusaContext() sharedContext: Context = {}