mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: ignore typings mismatch
This commit is contained in:
1 parent
6c274497b4
commit
24aee0a033
1 file changed
+1
-1
@@ -139,7 +139,7 @@ ${ctx.response.status} ${endTime - startTime}ms ${ctx.response.length}`);
|
||||
}));
|
||||
const layers = [baseLayer, rendererLayer(router, logger), responseLayer(router), userLayer];
|
||||
app.use(async (ctx, next) => await next().catch(console.error)).use(domainLayer);
|
||||
layers.forEach((layer) => router.use(layer));
|
||||
layers.forEach((layer) => router.use(layer as any));
|
||||
wsServer.on('connection', async (socket, request) => {
|
||||
const ctx: any = app.createContext(request, {} as any);
|
||||
await domainLayer(ctx, () => baseLayer(ctx, () => layers[1](ctx, () => userLayer(ctx, () => { }))));
|
||||
|
||||
Reference in new issue
Block a user