mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
Merge pull request #26140 from overleaf/rh-cio-sub-status
Use analyticsId as primary identifier in customer.io and support best-subscription property GitOrigin-RevId: d412f2edbff2e430d7fe3192b8843ad9ac2c226a
This commit is contained in:
@@ -409,6 +409,15 @@ async function projectListPage(req, res, next) {
|
||||
'papers-notification-banner'
|
||||
)
|
||||
|
||||
const customerIoEnabled =
|
||||
await SplitTestHandler.promises.hasUserBeenAssignedToVariant(
|
||||
req,
|
||||
userId,
|
||||
'customer-io-trial-conversion',
|
||||
'enabled',
|
||||
true
|
||||
)
|
||||
|
||||
res.render('project/list-react', {
|
||||
title: 'your_projects',
|
||||
usersBestSubscription,
|
||||
@@ -440,6 +449,7 @@ async function projectListPage(req, res, next) {
|
||||
})),
|
||||
hasIndividualPaidSubscription,
|
||||
userRestrictions: Array.from(req.userRestrictions || []),
|
||||
customerIoEnabled,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user