Skip to content

Commit 3139bce

Browse files
committed
fix: add old content_type field to delete search to purge old docs
1 parent a3a9274 commit 3139bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)