mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 07:12:14 -05:00
8c70d680f4
Collabratec create project api GitOrigin-RevId: 5f421625baa5c48f1745a15e15fe3a18fc1a4884
6 lines
407 B
CoffeeScript
6 lines
407 B
CoffeeScript
Project = require("../../models/Project").Project
|
|
|
|
module.exports = ProjectCollabratecDetailsHandler =
|
|
initializeCollabratecProject: (project_id, name, user_id, collabratec_document_id, collabratec_privategroup_id, callback=(err)->) ->
|
|
update = $set: { name, collabratecUsers: [ { user_id, collabratec_document_id, collabratec_privategroup_id } ] }
|
|
Project.update { _id: project_id }, update, callback
|