Skip to content

Commit

Permalink
fix: (servers) properly set inactive registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tyzbit committed Apr 28, 2023
1 parent 999c655 commit ad4ee17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (bot *ArchiverBot) updateServerRegistrations(activeGuilds []*discordgo.Guil
var sr []ServerRegistration
bot.DB.Find(&sr)
active := ConfigBool{sql.NullBool{Bool: true}}
inactive := ConfigBool{sql.NullBool{Bool: false}}
inactive := ConfigBool{sql.NullBool{Valid: true, Bool: false}}

// Update all registrations for whether or not the server is active
for _, reg := range sr {
Expand Down

0 comments on commit ad4ee17

Please sign in to comment.