mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
Bump caches for documents. (#2265)
This commit is contained in:
+1
-1
@@ -558,7 +558,7 @@ export const getRevisionFile = batch<[string, string, string], RevisionFile | nu
|
||||
* Get a document by its ID.
|
||||
*/
|
||||
export const getDocument = cache(
|
||||
'api.getDocument',
|
||||
'api.getDocument.v2',
|
||||
async (spaceId: string, documentId: string, options: CacheFunctionOptions) => {
|
||||
const response = await api().spaces.getDocumentById(
|
||||
spaceId,
|
||||
|
||||
Reference in New Issue
Block a user