mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[web] let docstore determine a projects comment thread ids (#26364)
* [docstore] add endpoint for getting a projects comment thread ids * [web] let docstore determine a projects comment thread ids Also fetch the comment thread ids once when reverting project. GitOrigin-RevId: c3ebab976821509c9627962e58918f9c6ebb0e1d
This commit is contained in:
@@ -83,6 +83,12 @@ async function getAllRanges(req, res) {
|
||||
res.json(_buildDocsArrayView(projectId, docs))
|
||||
}
|
||||
|
||||
async function getCommentThreadIds(req, res) {
|
||||
const { project_id: projectId } = req.params
|
||||
const threadIds = await DocManager.getCommentThreadIds(projectId)
|
||||
res.json(threadIds)
|
||||
}
|
||||
|
||||
async function getTrackedChangesUserIds(req, res) {
|
||||
const { project_id: projectId } = req.params
|
||||
const userIds = await DocManager.getTrackedChangesUserIds(projectId)
|
||||
@@ -239,6 +245,7 @@ module.exports = {
|
||||
getAllDeletedDocs: expressify(getAllDeletedDocs),
|
||||
getAllRanges: expressify(getAllRanges),
|
||||
getTrackedChangesUserIds: expressify(getTrackedChangesUserIds),
|
||||
getCommentThreadIds: expressify(getCommentThreadIds),
|
||||
projectHasRanges: expressify(projectHasRanges),
|
||||
updateDoc: expressify(updateDoc),
|
||||
patchDoc: expressify(patchDoc),
|
||||
|
||||
Reference in New Issue
Block a user