feat/upgrade nest v9 (#620)
This commit is contained in:
@@ -7,5 +7,5 @@ export interface FunctionContextResponse {
|
||||
throws(code: number, message: any): void
|
||||
type(type: string): FunctionContextResponse
|
||||
status(code: number, statusMessage?: string): FunctionContextResponse
|
||||
send(data: any): void
|
||||
send(data: any): any
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export const createMockedContextResponse = (
|
||||
return response
|
||||
},
|
||||
send(data: any) {
|
||||
reply.send(data)
|
||||
return reply.send(data)
|
||||
},
|
||||
status(code: number, message?: string) {
|
||||
reply.raw.statusCode = code
|
||||
|
||||
@@ -89,7 +89,7 @@ export class ServerlessController {
|
||||
)
|
||||
|
||||
if (!reply.sent) {
|
||||
reply.send(result)
|
||||
return reply.send(result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user