mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 14:16:32 -05:00
12 lines
486 B
CoffeeScript
12 lines
486 B
CoffeeScript
logger = require('logger-sharelatex')
|
|
ReferalHandler = require('./ReferalHandler')
|
|
AuthenticationController = require('../Authentication/AuthenticationController')
|
|
|
|
module.exports =
|
|
bonus: (req, res)->
|
|
user_id = AuthenticationController.getLoggedInUserId(req)
|
|
ReferalHandler.getReferedUserIds 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
|