Make an empty array when no items found
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-05-13 11:25:34 +02:00
parent ac56638664
commit 54e55c194e
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -158,6 +158,10 @@ WHERE "channel_id" = $1
tl.Paging.Before = last tl.Paging.Before = last
// tl.Paging.After = last // tl.Paging.After = last
if tl.Items == nil {
tl.Items = []microsub.Item{}
}
return tl, nil return tl, nil
} }