Reinstate options param in getDoc

Removed in #23209 - used by the admin restore doc functionality.

GitOrigin-RevId: bb3b682ef19719956236ec24807e19cbc09f049c
This commit is contained in:
Andrew Rumble
2025-04-08 10:53:25 +01:00
committed by Copybot
parent 29b0dd0725
commit 814a55809b
@@ -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 }
}