api/webhooks: Fix deletion error message for tickets
This commit is contained in:
parent
0da003766d
commit
0bb9ef9657
|
@ -2328,7 +2328,7 @@ func (r *mutationResolver) DeleteTicketWebhook(ctx context.Context, id int) (mod
|
||||||
return nil
|
return nil
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
return nil, fmt.Errorf("No tracker webhook by ID %d found for this user", id)
|
return nil, fmt.Errorf("No ticket webhook by ID %d found for this user", id)
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue