Check for changed files since last merge in GitHub Sync modal (#24180)

GitOrigin-RevId: 4cd55e1501648f0a18b77be5af19deb0773d6881
This commit is contained in:
Alf Eaton
2025-03-12 11:40:12 +00:00
committed by Copybot
parent 92499f6260
commit 4ddd3ee772
3 changed files with 17 additions and 2 deletions
@@ -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 = {