fix(medusa): Resent notification replaces parent notification

This commit is contained in:
Bhargava Prabu Reddy authored and GitHub committed 2022-09-12 21:35:15 +02:00
1 parent 64949dc721
commit 505a13eb1c
1 file changed
+2 -1
+2 -1
View File
@@ -267,8 +267,9 @@ class NotificationService extends TransactionBaseService {
const notiRepo = transactionManager.getCustomRepository(
this.notificationRepository_
)
const resendNoti: Record<string, unknown> = { ...notification, id: null }
const created = notiRepo.create({
...notification,
...resendNoti,
to,
data,
parent_id: id,