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(
447
447
) ;
448
448
449
449
const getRevisionPageDocument = withCacheKey (
450
- withoutConcurrentExecution (
450
+ withoutConcurrentRequestExecution (
451
451
async (
452
- _ ,
452
+ cacheKey ,
453
453
input : DataFetcherInput ,
454
454
params : { spaceId : string ; revisionId : string ; pageId : string }
455
455
) => {
@@ -459,16 +459,18 @@ const getRevisionPageDocument = withCacheKey(
459
459
async ( ) => {
460
460
return wrapDataFetcherError ( async ( ) => {
461
461
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
+ )
472
474
) ;
473
475
474
476
cacheTag ( ...getCacheTagsFromResponse ( res ) ) ;
You can’t perform that action at this time.
0 commit comments