Skip to content

Commit 5209974

Browse files
committed
Unify API for updating entities
1 parent 3411a10 commit 5209974

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MailQ/Resources/NotificationResource.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ public function createNotification(NotificationEntity $notification)
2929
}
3030

3131
/**
32-
*
3332
* @param NotificationEntity $notification
34-
* @param int $notificationId
3533
*/
36-
public function updateNotification(NotificationEntity $notification, $notificationId)
34+
public function updateNotification(NotificationEntity $notification)
3735
{
38-
$request = Request::put("{$this->getCompanyId()}/notifications/{$notificationId}");
36+
$request = Request::put("{$this->getCompanyId()}/notifications/{$notification->getId()}");
3937
$request->setContentAsEntity($notification);
4038
$this->getConnector()->sendRequest($request);
4139
}

0 commit comments

Comments
 (0)