Merge pull request #16367 from overleaf/em-remove-util-promises

Remove util/promises stub

GitOrigin-RevId: 8bde9a924d09905f24e8072ae3f7552eb3391862
This commit is contained in:
Eric Mc Sween 2024-01-04 07:32:13 -05:00 committed by Copybot
parent b0f3f00c43
commit 92d36962bd
2 changed files with 1 additions and 9 deletions

View file

@ -4,7 +4,7 @@ const UserGetter = require('../User/UserGetter')
const logger = require('@overleaf/logger')
const SessionManager = require('../Authentication/SessionManager')
const SplitTestHandler = require('../SplitTests/SplitTestHandler')
const { expressify } = require('../../util/promises')
const { expressify } = require('@overleaf/promise-utils')
async function optIn(req, res) {
const userId = SessionManager.getLoggedInUserId(req.session)

View file

@ -1,8 +0,0 @@
// This stub module is temporary. Keep it around for a while to allow old
// branches to be merged.
module.exports = require('@overleaf/promise-utils')
process.emitWarning(
'The util/promises module is deprecated. Use @overleaf/promise-utils instead.'
)