mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
11 lines
361 B
CoffeeScript
11 lines
361 B
CoffeeScript
|
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",
|
||
|
title: "Bonus - Please recommend us"
|
||
|
refered_users: refered_users
|
||
|
refered_user_count: (refered_users or []).length
|