mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 02:57:45 +00:00
Refactor models.
This commit is contained in:
@@ -72,6 +72,17 @@ class WebhookMessage extends Model
|
||||
return $this->hasMany(WebhookAttempt::class);
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'sent' => 'boolean',
|
||||
'errored' => 'boolean',
|
||||
'uuid' => 'string',
|
||||
'message' => 'json',
|
||||
'logs' => 'json',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the amount
|
||||
*/
|
||||
@@ -88,15 +99,4 @@ class WebhookMessage extends Model
|
||||
get: static fn($value) => (int)$value,
|
||||
);
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'sent' => 'boolean',
|
||||
'errored' => 'boolean',
|
||||
'uuid' => 'string',
|
||||
'message' => 'json',
|
||||
'logs' => 'json',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user