Merge pull request #5087 from overleaf/em-promisify-subscription-updater

Promisify FeaturesUpdater and SubscriptionHandler

GitOrigin-RevId: 1a9725afa119c0eaee3d975a11197b6f702f1307
This commit is contained in:
Eric Mc Sween
2021-09-21 08:03:10 +00:00
committed by Copybot
parent 8b1665a97c
commit 0f7bfe9173
16 changed files with 1323 additions and 1792 deletions
@@ -447,7 +447,7 @@ function recurlyNotificationParser(req, res, next) {
async function refreshUserFeatures(req, res) {
const { user_id: userId } = req.params
await FeaturesUpdater.promises.refreshFeatures(userId)
await FeaturesUpdater.promises.refreshFeatures(userId, 'acceptance-test')
res.sendStatus(200)
}