mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 05:13:49 +00:00
10 lines
359 B
CoffeeScript
10 lines
359 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
|