mirror of
https://github.com/ergochat/ergo.git
synced 2026-03-23 15:48:03 +01:00
Merge pull request #2371 from slingamn/sqlite_fix
fix (*SQLite).ListChannels
This commit is contained in:
commit
ef28345fd5
@ -998,7 +998,7 @@ func (s *SQLite) ListChannels(cfchannels []string) (results []history.TargetList
|
||||
results = make([]history.TargetListing, 0, len(cfchannels))
|
||||
for _, chname := range cfchannels {
|
||||
var nanotime int64
|
||||
err = s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime)
|
||||
err := s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime)
|
||||
if err == sql.ErrNoRows {
|
||||
continue // channel has no messages, skip it
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user