mirror of
https://git.ptzo.gdn/feditools/relay.git
synced 2024-09-21 13:57:09 +00:00
don't try to update accounts without instance account id (#111)
This commit is contained in:
parent
103d898182
commit
222d96ca6d
@ -17,6 +17,10 @@ func (l *Logic) EnqueueAccountInfoUpdates(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, account := range accounts {
|
for _, account := range accounts {
|
||||||
|
if account.InstanceAccountID == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if err := l.runner.EnqueueUpdateAccountInfo(ctx, account.ID); err != nil {
|
if err := l.runner.EnqueueUpdateAccountInfo(ctx, account.ID); err != nil {
|
||||||
log.Warnf("runner: %s", err.Error())
|
log.Warnf("runner: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user