Skip to content

Commit

Permalink
bgs: fix PDS registration SQL error
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Mar 28, 2023
1 parent af2577b commit 96b71b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgs/fedmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (s *Slurper) SubscribeToPds(ctx context.Context, host string, reg bool) err

if !peering.Registered && reg {
peering.Registered = true
if err := s.db.Model(models.PDS{}).Where("id = ?").Update("registered", true).Error; err != nil {
if err := s.db.Model(models.PDS{}).Where("id = ?", peering.ID).Update("registered", true).Error; err != nil {
return err
}
}
Expand Down

0 comments on commit 96b71b8

Please sign in to comment.