Skip to content

Commit

Permalink
feat(sanity): add tag to list document versions request
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 authored and RitaDias committed Aug 23, 2024
1 parent e5bb0bf commit 2339715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/core/util/versions/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function getAllVersionsOfDocument(

const query = `*[_id match "*${id}*"]`

return await client.fetch(query).then((documents) => {
return await client.fetch(query, {}, {tag: 'document.list-versions'}).then((documents) => {
return documents.map((doc: SanityDocument, index: number) => ({
name: getVersionName(doc._id),
title: getVersionName(doc._id),
Expand Down

0 comments on commit 2339715

Please sign in to comment.