making changes to the dependency implementation like those in Commit 57c481e

This commit is contained in:
viljarb
2026-03-20 14:50:02 +01:00
parent c37dae9b1a
commit 85e20c58fe
3 changed files with 7 additions and 64 deletions

View File

@@ -298,8 +298,13 @@ func AddDependencyHandler(w http.ResponseWriter, r *http.Request) {
}
depType := models.DepBlocks
dep := &models.Dependency{
IssueID: issue.ID,
DependsOnID: dependsOnID,
Type: depType,
}
if err := app.Issues.AddDependency(r.Context(), issue.ID, dependsOnID, depType, "web"); err != nil {
if err := app.Issues.AddDependency(r.Context(), dep, "web"); err != nil {
http.Error(w, "Failed to add dependency: "+err.Error(), http.StatusInternalServerError)
return
}