mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:05:24 -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) ->)->
|
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) ->
|
ProjectEntityHandler.addFileWithoutUpdatingHistory project_id, folder_id, fileName, fsPath, userId, (error, fileRef, folder_id, path, fileStoreUrl) ->
|
||||||
|
return callback(error) if error?
|
||||||
newFiles = [
|
newFiles = [
|
||||||
file: fileRef
|
file: fileRef
|
||||||
path: path
|
path: path
|
||||||
|
|
Loading…
Reference in a new issue