mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Allow editing/deleting of comments and threads
This commit is contained in:
@@ -53,3 +53,12 @@ module.exports = ThreadManager =
|
||||
resolved: true
|
||||
}
|
||||
}, callback
|
||||
|
||||
deleteThread: (project_id, thread_id, callback = (error, room_id) ->) ->
|
||||
@findOrCreateThread project_id, thread_id, (error, room) ->
|
||||
return callback(error) if error?
|
||||
db.rooms.remove {
|
||||
_id: room._id
|
||||
}, (error) ->
|
||||
return callback(error) if error?
|
||||
return callback null, room._id
|
||||
|
||||
Reference in New Issue
Block a user