don't update project structure if file not created

This commit is contained in:
Brian Gough 2018-01-25 16:59:08 +00:00
parent 69bed6dbb2
commit aa5d880902

View file

@ -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