Skip to content

Commit

Permalink
fix: sector UI SQL (#56)
Browse files Browse the repository at this point in the history
* fix sector UI

* fix ddo pam
  • Loading branch information
LexLuthr authored Jun 12, 2024
1 parent 3d18876 commit 633c576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/api/sector/sector.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ func (c *cfg) getSectors(w http.ResponseWriter, r *http.Request) {
var mpieces []piece
apihelper.OrHTTPFail(w, c.DB.Select(r.Context(), &mpieces, `SELECT
sp_id,
sector_num,
sector_num as sector_number,
piece_size,
COALESCE(f05_deal_id, 0) AS f05_deal_id,
f05_deal_proposal,
ddo_pam
ddo_pam as direct_piece_activation_manifest
FROM sectors_meta_pieces
ORDER BY sp_id, sector_num`))
pieces = append(pieces, mpieces...)
Expand Down

0 comments on commit 633c576

Please sign in to comment.