Skip to content

Commit

Permalink
πŸ› Fix operation time out (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Jan 6, 2023
1 parent 41c39ff commit 72d7046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions studio/src/lib/structure/items/AssetLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const assetLibraryItems = [
S.documentTypeList('assetFile')
.apiVersion('2022-05-12')
.filter(
/* groq */ `_type in ["assetFile"] && count(*[references(^._id)]) == 0 && count(*[references(string::split(^._id,"drafts.")[1])]) == 0`,
/* groq */ `_type in ["assetFile"] && count(*[references(^._id)]) == 0 && count(*[references(string::split(^._id,"drafts.")[1]+"")]) == 0`,
)
.id('allFiles')
.title('All unused files'),
Expand All @@ -45,7 +45,7 @@ const assetLibraryItems = [
S.documentTypeList('videoFile')
.apiVersion('2022-05-12')
.filter(
/* groq */ `_type in ["videoFile"] && count(*[ references(^._id) ]) == 0 && count(*[references(string::split(^._id,"drafts.")[1])]) == 0`,
/* groq */ `_type in ["videoFile"] && count(*[ references(^._id) ]) == 0 && count(*[references(string::split(^._id,"drafts.")[1]+"")]) == 0`,
)

.id('videoFiles')
Expand Down

0 comments on commit 72d7046

Please sign in to comment.