overleaf/services/web/app/coffee/Features/Referal/ReferalController.coffee

11 lines
359 B
CoffeeScript
Raw Normal View History

2014-02-12 05:23:40 -05:00
logger = require('logger-sharelatex')
ReferalHandler = require('./ReferalHandler')
module.exports =
bonus: (req, res)->
ReferalHandler.getReferedUserIds req.session.user._id, (err, refered_users)->
res.render "referal/bonus",
2014-08-01 08:47:14 -04:00
title: "bonus_please_recommend_us"
2014-02-12 05:23:40 -05:00
refered_users: refered_users
refered_user_count: (refered_users or []).length