1
0

Getting all lists or one works now

This commit is contained in:
kolaente
2018-07-09 19:49:27 +02:00
parent d5eb2f08e3
commit 9e8f13edf6
6 changed files with 25 additions and 40 deletions

View File

@ -28,6 +28,11 @@ func GetItemsByListID(listID int64) (items []*ListItem, err error) {
return
}
// No need to iterate over users if the list doesn't has items
if len(items) == 0 {
return
}
// Get all users and put them into the array
var userIDs []int64
for _, i := range items {