Refactor adding more details to tasks (#739)
Refactor adding more details to tasks Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/739 Co-Authored-By: konrad <konrad@kola-entertainments.de> Co-Committed-By: konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
ccfa019870
commit
8d739b2cf9
3 changed files with 114 additions and 60 deletions
|
|
@ -287,6 +287,13 @@ func GetListSimplByTaskID(taskID int64) (l *List, err error) {
|
|||
return &list, nil
|
||||
}
|
||||
|
||||
// GetListsByIDs returns a map of lists from a slice with list ids
|
||||
func GetListsByIDs(listIDs []int64) (lists map[int64]*List, err error) {
|
||||
lists = make(map[int64]*List, len(listIDs))
|
||||
err = x.In("id", listIDs).Find(&lists)
|
||||
return
|
||||
}
|
||||
|
||||
type listOptions struct {
|
||||
search string
|
||||
user *user.User
|
||||
|
|
|
|||
Reference in a new issue