...
|
...
|
@@ -167,7 +167,7 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int |
|
|
query = query.Where(`task.participators @> '[{"uid":?}]'`, participator)
|
|
|
}
|
|
|
if assignedPerson, ok := queryOptions["assignedPerson"]; ok && (assignedPerson != int64(0)) {
|
|
|
query = query.Where(`task.assignedPerson @> '{"uid":?}'`, assignedPerson)
|
|
|
query = query.Where(`task.assigned_person @> '{"uid":?}'`, assignedPerson)
|
|
|
}
|
|
|
if taskIds, ok := queryOptions["taskIds"]; ok {
|
|
|
query = query.Where(`task.id IN (?)`, pg.In(taskIds.([]int64)))
|
...
|
...
|
|