This commit is contained in:
2026-06-10 20:27:44 +02:00
parent 42b5c6247d
commit 6150498a9e
9 changed files with 223 additions and 120 deletions
+3
View File
@@ -84,6 +84,9 @@ func (r *Repo) ListTree(ctx context.Context, profileID int64) ([]Station, error)
stationByID[s.ID] = len(stations)
stations = append(stations, s)
}
if err := rows.Err(); err != nil {
return nil, err
}
if len(stations) == 0 {
return stations, nil
}