Using promises in Collaboration service