mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
don't update project structure if file not created
This commit is contained in:
parent
69bed6dbb2
commit
aa5d880902
1 changed files with 1 additions and 0 deletions
|
@ -230,6 +230,7 @@ module.exports = ProjectEntityHandler =
|
|||
|
||||
addFile: (project_id, folder_id, fileName, fsPath, userId, callback = (error, fileRef, folder_id) ->)->
|
||||
ProjectEntityHandler.addFileWithoutUpdatingHistory project_id, folder_id, fileName, fsPath, userId, (error, fileRef, folder_id, path, fileStoreUrl) ->
|
||||
return callback(error) if error?
|
||||
newFiles = [
|
||||
file: fileRef
|
||||
path: path
|
||||
|
|
Loading…
Reference in a new issue