fix(webhook): do not fail to send webhook when loading the project fails
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
4998926f55
commit
4887f7fe60
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user