Skip to content

Commit aea1996

Browse files
authored
Merge pull request #354 from wpengine/fix-search
fix: add old content_type field to delete search to purge old docs
2 parents a3a9274 + 3139bce commit aea1996

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/smart-search.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function deleteOldDocs() {
130130
const response = await graphql({
131131
query: queryDocuments,
132132
variables: {
133-
query: 'post_type:"mdx_doc"',
133+
query: "post_type:mdx_doc OR content_type:mdx_doc",
134134
limit: 10,
135135
offset: totalCollected,
136136
},

0 commit comments

Comments
 (0)