Skip to content

Commit

Permalink
Merge pull request #347 from cofacts/fix-media-cooccurrence-error
Browse files Browse the repository at this point in the history
fix: add refresh when inserting media article
  • Loading branch information
MrOrz authored Sep 18, 2024
2 parents 79f9878 + af002bd commit 5f41b03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/mutations/CreateMediaArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ async function createNewMediaArticle({
status: getContentDefaultStatus(user),
contributors: [],
},
refresh: 'true', // Many use cases would search after media creation, thus refresh here
});

return articleId;
Expand Down

0 comments on commit 5f41b03

Please sign in to comment.