Add keepWebhook flag when deleting entities

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-08-16 09:46:04 +00:00
parent 763eb705d8
commit bb6ee9c668
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5
7 changed files with 30 additions and 34 deletions

View file

@ -157,7 +157,7 @@ func (a *APIController) DeleteOrgHandler(w http.ResponseWriter, r *http.Request)
return
}
if err := a.r.DeleteOrganization(ctx, orgID); err != nil {
if err := a.r.DeleteOrganization(ctx, orgID, false); err != nil {
log.Printf("removing org: %+v", err)
handleError(w, err)
return

View file

@ -157,7 +157,7 @@ func (a *APIController) DeleteRepoHandler(w http.ResponseWriter, r *http.Request
return
}
if err := a.r.DeleteRepository(ctx, repoID); err != nil {
if err := a.r.DeleteRepository(ctx, repoID, false); err != nil {
log.Printf("fetching repo: %s", err)
handleError(w, err)
return