From e3bf93a8c9422d9ca20944e3a517fea26bf56275 Mon Sep 17 00:00:00 2001 From: Stefan Ninic Date: Fri, 9 Oct 2020 12:52:50 +0200 Subject: [PATCH] Fixed webhook primary ID --- src/Models/Webhook.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Models/Webhook.php b/src/Models/Webhook.php index 0e4adf0..c485492 100644 --- a/src/Models/Webhook.php +++ b/src/Models/Webhook.php @@ -13,8 +13,13 @@ class Webhook extends Model { - public $number; + public $id; + public $event; + public $url; + public $is_active; + public $created_at; + public $updated_at; protected $entity = 'webhooks'; - protected $primaryKey = 'number'; + protected $primaryKey = 'id'; protected $modelClass = self::class; } \ No newline at end of file