Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Sep 16, 2024
1 parent acda87c commit 86eb99d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/internal/database/operations.go
Original file line number Diff line number Diff line change
@@ -223,5 +223,11 @@ func (g GormDatastore) RemoveApplicationByName(deploymentName string, applicatio
return fmt.Errorf("error deleting application: %v", err)
}

// Delete the deployment
err = g.db.Delete(&deployment).Error
if err != nil {
return fmt.Errorf("error deleting deployment: %v", err)
}

return nil
}
}

0 comments on commit 86eb99d

Please sign in to comment.