1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 17:46:57 +00:00

Merge pull request from overleaf/jpa-drop-alternative-plans-page-logic

[SubscriptionController] drop unused handling of alternative plans page

GitOrigin-RevId: 1a4ec8276ac0ea87567cfbad9f8d82544267320c
This commit is contained in:
Jakob Ackermann 2021-03-17 14:30:35 +01:00 committed by Copybot
parent 1e2ed05bed
commit 83a38a9980

View file

@ -37,10 +37,6 @@ const OError = require('@overleaf/o-error')
module.exports = SubscriptionController = {
plansPage(req, res, next) {
const plans = SubscriptionViewModelBuilder.buildPlansList()
let viewName = 'subscriptions/plans'
if (req.query.v != null) {
viewName = `${viewName}_${req.query.v}`
}
let currentUser = null
return GeoIpLookup.getCurrencyCode(
@ -50,7 +46,7 @@ module.exports = SubscriptionController = {
return next(err)
}
const render = () =>
res.render(viewName, {
res.render('subscriptions/plans', {
title: 'plans_and_pricing',
plans,
gaExperiments: Settings.gaExperiments.plansPage,