Merge pull request #14881 from overleaf/ab-beta-program-async-await

[web] Convert BetaProgramController to async/await

GitOrigin-RevId: 2423cb00b78b2f3fddb7bcd317d34ed4dbc12b95
This commit is contained in:
Jessica Lawshe
2023-10-24 08:47:38 -05:00
committed by Copybot
parent 8da063d640
commit 21514418e5
3 changed files with 140 additions and 127 deletions

View File

@@ -17,15 +17,11 @@ async function optOut(userId) {
AnalyticsManager.setUserPropertyForUser(userId, 'beta-program', false)
}
const BetaProgramHandler = {
module.exports = {
optIn: callbackify(optIn),
optOut: callbackify(optOut),
promises: {
optIn,
optOut,
},
}
BetaProgramHandler.promises = {
optIn,
optOut,
}
module.exports = BetaProgramHandler