don't try to update accounts without instance account id (#111)

This commit is contained in:
Tyr Mactire 2022-08-27 23:01:28 -07:00 committed by GitHub
parent 103d898182
commit 222d96ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,10 @@ func (l *Logic) EnqueueAccountInfoUpdates(ctx context.Context) error {
}
for _, account := range accounts {
if account.InstanceAccountID == "" {
continue
}
if err := l.runner.EnqueueUpdateAccountInfo(ctx, account.ID); err != nil {
log.Warnf("runner: %s", err.Error())
}