fix(v1:proposals:notifications): Change user.id with proposal.bidder

This commit is contained in:
Josepablo C
2024-08-16 20:36:55 -06:00
parent 3db8a25b68
commit cb35a6dd14

View File

@@ -76,7 +76,7 @@ async function onPatchEvent( id , newProposalData ){
} ); } );
const notification = new notificationsModel({ const notification = new notificationsModel({
"owner": user.id, "owner": proposal.bidder,
"title": `Your proposal has been accepted!`, "title": `Your proposal has been accepted!`,
"description": `${load.shipment_code}`, "description": `${load.shipment_code}`,
"tag":"accepted_proposal", "tag":"accepted_proposal",