chore: update version to 0.0.41 and improve Route class formatting

This commit is contained in:
2025-12-19 17:08:07 +08:00
parent 311bde7c7c
commit e1a53c01ea
2 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "@kevisual/router",
"version": "0.0.40",
"version": "0.0.41",
"description": "",
"type": "module",
"main": "./dist/router.js",

View File

@@ -658,8 +658,7 @@ export class QueryRouterServer extends QueryRouter {
async run(msg: { id?: string; path?: string; key?: string; payload?: any }, ctx?: RouteContext & { [key: string]: any }) {
const handle = this.handle;
if (handle) {
const result = await this.call(msg, ctx);
return handle(result);
return handle(msg, ctx);
}
return super.run(msg, ctx);
}