Skip to content

Commit 40d34b1

Browse files
authored
[5.x] Ensure updated_at and updated_by is not null in TracksLastModified (#13099)
1 parent 8db2554 commit 40d34b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Data/TracksLastModified.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ trait TracksLastModified
99
{
1010
public function lastModified()
1111
{
12-
return $this->has('updated_at')
12+
return $this->get('updated_at')
1313
? Carbon::createFromTimestamp($this->get('updated_at'), config('app.timezone'))
1414
: $this->fileLastModified();
1515
}
1616

1717
public function lastModifiedBy()
1818
{
19-
return $this->has('updated_by')
19+
return $this->get('updated_by')
2020
? User::find($this->get('updated_by'))
2121
: null;
2222
}

0 commit comments

Comments
 (0)