mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): return empty array instead of nil for BoltDB
This commit is contained in:
parent
857000e9ac
commit
1139e35ce1
Binary file not shown.
@ -29,6 +29,8 @@ func (d *BoltDb) getEvents(c enumerable, params db.RetrieveQueryParams, filter f
|
||||
i := 0 // offset counter
|
||||
n := 0 // number of added items
|
||||
|
||||
events = []db.Event{}
|
||||
|
||||
for k, v := c.First(); k != nil; k, v = c.Next() {
|
||||
if params.Offset > 0 && i < params.Offset {
|
||||
i++
|
||||
|
Loading…
Reference in New Issue
Block a user