mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
remove duplicate links because of join with link_labels table
This commit is contained in:
parent
fc18004a5d
commit
c7841b8e8a
1 changed files with 1 additions and 2 deletions
|
|
@ -448,10 +448,9 @@ class UserArticleModel extends DataModel<
|
|||
.innerJoin(Table.LINK_LABELS, 'link_labels.link_id', 'links.id')
|
||||
.innerJoin(Table.LABELS, 'labels.id', 'link_labels.label_id')
|
||||
.whereRaw('LOWER(omnivore.labels.name) = ANY(?)', [args.labelFilters])
|
||||
.distinct('links.id')
|
||||
}
|
||||
|
||||
console.log(queryPromise.toString())
|
||||
|
||||
if (notNullField) {
|
||||
queryPromise.whereNotNull(notNullField)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue