mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
7 lines
217 B
CoffeeScript
7 lines
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
|