fix(medusa): Resent notification replaces parent notification
This commit is contained in:
1 parent
64949dc721
commit
505a13eb1c
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user