mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #9383 from overleaf/em-file-tree-histories
Track source for all file tree operations GitOrigin-RevId: ff95ea8e99bfa30203a2a42968519bbaba65e708
This commit is contained in:
@@ -322,7 +322,7 @@ function deleteComment(req, res, next) {
|
||||
function updateProject(req, res, next) {
|
||||
const timer = new Metrics.Timer('http.updateProject')
|
||||
const projectId = req.params.project_id
|
||||
const { projectHistoryId, userId, updates = [], version } = req.body
|
||||
const { projectHistoryId, userId, updates = [], version, source } = req.body
|
||||
logger.debug({ projectId, updates, version }, 'updating project via http')
|
||||
ProjectManager.updateProjectWithLocks(
|
||||
projectId,
|
||||
@@ -330,6 +330,7 @@ function updateProject(req, res, next) {
|
||||
userId,
|
||||
updates,
|
||||
version,
|
||||
source,
|
||||
error => {
|
||||
timer.done()
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user