Skip to content

Commit

Permalink
fix: Notification model getUpdatedAt method uses created_at date …
Browse files Browse the repository at this point in the history
…instead of `updated_at` (#2417)

Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>
  • Loading branch information
pawel-ledwig and peterojo authored Jan 11, 2024
1 parent 3128284 commit a01998b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function setCreatedAt(DateTime $createdAt): NotificationInterface

public function getUpdatedAt(): ?string
{
$updatedAt = $this->getData(self::CREATED_AT);
$updatedAt = $this->getData(self::UPDATED_AT);

if ($updatedAt instanceOf Datetime) {
return $updatedAt->format('Y-m-d H:i:s');
Expand Down

0 comments on commit a01998b

Please sign in to comment.