Skip to content

Commit

Permalink
Merge pull request #321 from cofacts/fix-dup-article
Browse files Browse the repository at this point in the history
Fix image search on chatbot
  • Loading branch information
MrOrz authored Sep 7, 2022
2 parents 5691596 + 2f09c7a commit 9267b1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webhook/handlers/processImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default async function({ data = {} }, event, userId) {
} = await gql`
query($mediaUrl: String!) {
ListArticles(
filter: { mediaUrl: $mediaUrl }
filter: {
mediaUrl: $mediaUrl
articleTypes: [TEXT, IMAGE, AUDIO, VIDEO]
}
orderBy: [{ _score: DESC }]
first: 4
) {
Expand Down

0 comments on commit 9267b1f

Please sign in to comment.