aboutsummaryrefslogtreecommitdiff
path: root/internal/db/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/webhook.go')
-rw-r--r--internal/db/webhook.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/webhook.go b/internal/db/webhook.go
index c056f413..96a01971 100644
--- a/internal/db/webhook.go
+++ b/internal/db/webhook.go
@@ -242,7 +242,7 @@ func getWebhook(bean *Webhook) (*Webhook, error) {
if err != nil {
return nil, err
} else if !has {
- return nil, errors.WebhookNotExist{bean.ID}
+ return nil, errors.WebhookNotExist{ID: bean.ID}
}
return bean, nil
}
@@ -509,7 +509,7 @@ func GetHookTaskOfWebhookByUUID(webhookID int64, uuid string) (*HookTask, error)
if err != nil {
return nil, err
} else if !has {
- return nil, errors.HookTaskNotExist{webhookID, uuid}
+ return nil, errors.HookTaskNotExist{HookID: webhookID, UUID: uuid}
}
return hookTask, nil
}