Restore enums, replace one to enforce php 8.1 compatibility.

This commit is contained in:
James Cole
2022-04-13 16:27:01 +02:00
parent 71d53fbda4
commit cfcf860438
7 changed files with 76 additions and 20 deletions

View File

@@ -76,7 +76,19 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
*/
class Webhook extends Model
{
// dont forget to update the config in firefly.php
public const DELIVERY_JSON = 300;
public const RESPONSE_ACCOUNTS = 210;
public const RESPONSE_NONE = 220;
public const RESPONSE_TRANSACTIONS = 200;
public const TRIGGER_DESTROY_TRANSACTION = 120;
public const TRIGGER_STORE_TRANSACTION = 100;
public const TRIGGER_UPDATE_TRANSACTION = 110;
use SoftDeletes;
protected $casts
= [
'active' => 'boolean',