Skip to content

Commit

Permalink
Fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Jun 30, 2021
1 parent db02980 commit dfe179f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion node/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (n *Node) jobUpdateSessions() error {
}
if !session.Status.Equal(hubtypes.StatusActive) {
removePeer = true
if subscription.Status.Equal(hubtypes.StatusInactive) {
if session.Status.Equal(hubtypes.StatusInactive) {
removeSession, skipUpdate = true, true
}

Expand Down
4 changes: 2 additions & 2 deletions rest/session/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func handlerAddSession(ctx *context.Context) http.HandlerFunc {
&types.Session{
ID: items[i].ID,
},
).Delete(
&types.Session{},
).Update(
"address", "",
)
}
}
Expand Down

0 comments on commit dfe179f

Please sign in to comment.