mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
The array has strings in it, not datetime objects.
This commit is contained in:
parent
df5a911168
commit
a2b450baa6
1 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ class TrackFile extends Model
|
|||
'status' => 'integer',
|
||||
'filesize' => 'integer',
|
||||
];
|
||||
|
||||
|
||||
public function track() {
|
||||
return $this->belongsTo(Track::class)->withTrashed();
|
||||
}
|
||||
|
@ -106,8 +106,8 @@ class TrackFile extends Model
|
|||
}
|
||||
|
||||
public function getIsExpiredAttribute() {
|
||||
return $this->attributes['expires_at'] === null ||
|
||||
$this->attributes['expires_at']->isPast();
|
||||
return $this->expires_at === null ||
|
||||
$this->expires_at->isPast();
|
||||
}
|
||||
|
||||
public function getFormatAttribute($value)
|
||||
|
|
Loading…
Reference in a new issue