1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2024-12-19 02:17:23 -05:00
overleaf/services/web/app/coffee/Features/Referal/ReferalHandler.coffee
2014-02-12 10:23:40 +00:00

7 lines
No EOL
217 B
CoffeeScript

User = require('../../models/User').User
module.exports =
getReferedUserIds: (user_id, callback)->
User.findById user_id, (err, user)->
refered_users = user.refered_users || []
callback "null", refered_users