Compare commits

...

2 Commits

Author SHA1 Message Date
zipfriis
c2276b6e13 Merge branch 'main' of git.samantha42.xyz:samantha/Portifolio-Engine 2026-03-27 21:27:35 +01:00
zipfriis
a949fde15c open list 2026-03-27 21:26:31 +01:00
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -88,7 +88,7 @@ func GetPositionListHandler(db *sql.DB) http.HandlerFunc {
}
w.Header().Set("Content-Type", "application/json")
if err := json.NewEncoder(w).Encode(map[string]any{"List": posList}); err != nil {
if err := json.NewEncoder(w).Encode(posList); err != nil {
http.Error(w, fmt.Sprintf("failed to encode positions: %s", err), http.StatusInternalServerError)
return
}