File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
packages/gitbook-v2/src/lib/data Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -447,9 +447,9 @@ const getRevisionPageMarkdown = withCacheKey(
447447) ;
448448
449449const getRevisionPageDocument = withCacheKey (
450- withoutConcurrentExecution (
450+ withoutConcurrentRequestExecution (
451451 async (
452- _ ,
452+ cacheKey ,
453453 input : DataFetcherInput ,
454454 params : { spaceId : string ; revisionId : string ; pageId : string }
455455 ) => {
@@ -459,16 +459,18 @@ const getRevisionPageDocument = withCacheKey(
459459 async ( ) => {
460460 return wrapDataFetcherError ( async ( ) => {
461461 const api = apiClient ( input ) ;
462- const res = await api . spaces . getPageDocumentInRevisionById (
463- params . spaceId ,
464- params . revisionId ,
465- params . pageId ,
466- {
467- evaluated : true ,
468- } ,
469- {
470- ...noCacheFetchOptions ,
471- }
462+ const res = await withoutConcurrentProcessExecution ( cacheKey , async ( ) =>
463+ api . spaces . getPageDocumentInRevisionById (
464+ params . spaceId ,
465+ params . revisionId ,
466+ params . pageId ,
467+ {
468+ evaluated : true ,
469+ } ,
470+ {
471+ ...noCacheFetchOptions ,
472+ }
473+ )
472474 ) ;
473475
474476 cacheTag ( ...getCacheTagsFromResponse ( res ) ) ;
You can’t perform that action at this time.
0 commit comments