Skip to content

Commit

Permalink
$mol_wire_async, $mol_wire_sync fix types2
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 3, 2023
1 parent f6c5b40 commit aeb3f02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/server/server.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ namespace $ {

expressGenerator() {
const self = $mol_wire_async( this )
return function( ... args: any[] ) {
return self.handleRequest.apply( self, args )

return function( req : any , res : any , next : () => void ) {
return self.handleRequest.call( self, req, res, next )
}
}

Expand Down

0 comments on commit aeb3f02

Please sign in to comment.