mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Make apply
module function async
This will allow us to support async module loading required for ES modules support. GitOrigin-RevId: bfd925c94ca3b6df8f75f704e21164a546973f5f
This commit is contained in:
parent
2f96ef11f9
commit
46317a9b9c
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ const loadModules = _.memoize(loadModulesImpl)
|
||||||
async function applyRouter(webRouter, privateApiRouter, publicApiRouter) {
|
async function applyRouter(webRouter, privateApiRouter, publicApiRouter) {
|
||||||
for (const module of await modules()) {
|
for (const module of await modules()) {
|
||||||
if (module.router && module.router.apply) {
|
if (module.router && module.router.apply) {
|
||||||
module.router.apply(webRouter, privateApiRouter, publicApiRouter)
|
await module.router.apply(webRouter, privateApiRouter, publicApiRouter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue