Skip to content

Commit

Permalink
fix api bug for sat info
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Jun 13, 2024
1 parent 7a46b06 commit cb10abc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 16 deletions.
11 changes: 6 additions & 5 deletions pkg/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ func (i *infoserver) getInfo(w http.ResponseWriter, r *http.Request) {

for _, n := range g.Nodes {
s.Shells[g.Group-1].Sats[n.ID.ID.Id] = Node{
Type: "sat",
Type: "sat",
Active: n.Active,
Identifier: Identifier{
Shell: n.ID.ID.Group,
ID: n.ID.ID.Id,
},
Active: n.Active,
}
}

Expand Down Expand Up @@ -178,12 +178,12 @@ func (i *infoserver) getShell(w http.ResponseWriter, r *http.Request) {

for _, n := range g.Nodes {
s.Sats = append(s.Sats, Node{
Type: "sat",
Type: "sat",
Active: n.Active,
Identifier: Identifier{
Shell: n.ID.ID.Group,
ID: n.ID.ID.Id,
},
Active: n.Active,
})
}

Expand Down Expand Up @@ -235,7 +235,8 @@ func (i *infoserver) getSat(w http.ResponseWriter, r *http.Request) {
}

s := Node{
Type: "sat",
Type: "sat",
Active: n.Active,
Identifier: Identifier{
Shell: n.ID.ID.Group,
ID: n.ID.ID.Id,
Expand Down
4 changes: 2 additions & 2 deletions proto/celestial/celestial.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 32 additions & 9 deletions proto/celestial/celestial_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb10abc

Please sign in to comment.