fix(webhook): do not fail to send webhook when loading the project fails
Some checks failed
continuous-integration/drone/push Build is failing

https://community.vikunja.io/t/webhook-project-error/3305/7
This commit is contained in:
kolaente 2025-03-19 16:26:37 +01:00
parent 4998926f55
commit 4887f7fe60
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -977,7 +977,7 @@ func (wl *WebhookListener) Handle(msg *message.Message) (err error) {
project := &Project{ID: webhook.ProjectID}
err = project.ReadOne(s, &user.User{ID: doerID})
if err != nil && !IsErrProjectDoesNotExist(err) {
return err
log.Errorf("Could not load project for webhook %d: %s", webhook.ID, err)
}
if err == nil {
event["project"] = project