Skip to content

Commit

Permalink
fix: add refresh when inserting media article
Browse files Browse the repository at this point in the history
- so that the article can be searched right after insertion
  • Loading branch information
MrOrz committed Sep 17, 2024
1 parent 14a6b66 commit af002bd
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 af002bd

Please sign in to comment.