mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Reinstate options param in getDoc
Removed in #23209 - used by the admin restore doc functionality. GitOrigin-RevId: bb3b682ef19719956236ec24807e19cbc09f049c
This commit is contained in:
@@ -99,10 +99,18 @@ function getAllDocPathsFromProject(project) {
|
||||
return docPath
|
||||
}
|
||||
|
||||
async function getDoc(projectId, docId) {
|
||||
/**
|
||||
*
|
||||
* @param {string} projectId
|
||||
* @param {string} docId
|
||||
* @param {{peek?: boolean, include_deleted?: boolean}} options
|
||||
* @return {Promise<{lines: *, rev: *, version: *, ranges: *}>}
|
||||
*/
|
||||
async function getDoc(projectId, docId, options = {}) {
|
||||
const { lines, rev, version, ranges } = await DocstoreManager.promises.getDoc(
|
||||
projectId,
|
||||
docId
|
||||
docId,
|
||||
options
|
||||
)
|
||||
return { lines, rev, version, ranges }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user