mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 01:26:55 +00:00
put element just needs project folder structure not docs inside
This commit is contained in:
parent
b504732733
commit
6f474d9a00
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ ProjectSchema.statics.putElement = (project_id, folder_id, element, type, callba
|
|||
logger.err project_id:project_id, folder_id:folder_id, element:element, type:type, "failed trying to insert element as it was null"
|
||||
return callback(e)
|
||||
type = sanitizeTypeOfElement type
|
||||
this.findById project_id, (err, project)=>
|
||||
require('../Features/Project/ProjectGetter').getProjectWithOnlyFolders project_id, (err, project)=>
|
||||
if err?
|
||||
callback(err)
|
||||
if !folder_id?
|
||||
|
|
Loading…
Reference in a new issue