diff --git a/internal/db/bundb/instance.go b/internal/db/bundb/instance.go index 05e9116b2..24cc6f1be 100644 --- a/internal/db/bundb/instance.go +++ b/internal/db/bundb/instance.go @@ -123,5 +123,10 @@ func (i *instanceDB) GetInstanceAccounts(ctx context.Context, domain string, max if err := q.Scan(ctx); err != nil { return nil, i.conn.ProcessError(err) } + + if len(accounts) == 0 { + return nil, db.ErrNoEntries + } + return accounts, nil }