mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
Check for changed files since last merge in GitHub Sync modal (#24180)
GitOrigin-RevId: 4cd55e1501648f0a18b77be5af19deb0773d6881
This commit is contained in:
@@ -152,6 +152,17 @@ const ProjectGetter = {
|
||||
'deleterData.deletedProjectOwnerId': userId,
|
||||
}).exec()
|
||||
},
|
||||
|
||||
async getHistoryId(projectId) {
|
||||
const project = await this.getProject(projectId, {
|
||||
'overleaf.history.id': 1,
|
||||
})
|
||||
const historyId = project?.overleaf?.history?.id
|
||||
if (!historyId) {
|
||||
throw new OError('project does not have a history id', { projectId })
|
||||
}
|
||||
return historyId
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user