mirror of https://github.com/pixelfed/pixelfed
Add FailedJob model
parent
261e95e772
commit
6bad723b68
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Carbon\Carbon;
|
||||||
|
|
||||||
|
class FailedJob extends Model
|
||||||
|
{
|
||||||
|
const CREATED_AT = 'failed_at';
|
||||||
|
const UPDATED_AT = 'failed_at';
|
||||||
|
|
||||||
|
public $timestamps = 'failed_at';
|
||||||
|
|
||||||
|
public function getFailedAtAttribute($val)
|
||||||
|
{
|
||||||
|
return Carbon::parse($val);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue