mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 20:41:01 +00:00
Merge pull request #16367 from overleaf/em-remove-util-promises
Remove util/promises stub GitOrigin-RevId: 8bde9a924d09905f24e8072ae3f7552eb3391862
This commit is contained in:
parent
b0f3f00c43
commit
92d36962bd
2 changed files with 1 additions and 9 deletions
|
@ -4,7 +4,7 @@ const UserGetter = require('../User/UserGetter')
|
||||||
const logger = require('@overleaf/logger')
|
const logger = require('@overleaf/logger')
|
||||||
const SessionManager = require('../Authentication/SessionManager')
|
const SessionManager = require('../Authentication/SessionManager')
|
||||||
const SplitTestHandler = require('../SplitTests/SplitTestHandler')
|
const SplitTestHandler = require('../SplitTests/SplitTestHandler')
|
||||||
const { expressify } = require('../../util/promises')
|
const { expressify } = require('@overleaf/promise-utils')
|
||||||
|
|
||||||
async function optIn(req, res) {
|
async function optIn(req, res) {
|
||||||
const userId = SessionManager.getLoggedInUserId(req.session)
|
const userId = SessionManager.getLoggedInUserId(req.session)
|
||||||
|
|
|
@ -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.'
|
|
||||||
)
|
|
Loading…
Reference in a new issue