fix #9299
This commit is contained in:
parent
020cd5cc02
commit
b4b742ca89
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ export class ApiCallService implements OnApplicationShutdown {
|
||||||
private send(reply: FastifyReply, x?: any, y?: ApiError) {
|
private send(reply: FastifyReply, x?: any, y?: ApiError) {
|
||||||
if (x == null) {
|
if (x == null) {
|
||||||
reply.code(204);
|
reply.code(204);
|
||||||
|
reply.send();
|
||||||
} else if (typeof x === 'number' && y) {
|
} else if (typeof x === 'number' && y) {
|
||||||
reply.code(x);
|
reply.code(x);
|
||||||
reply.send({
|
reply.send({
|
||||||
|
|
Loading…
Reference in a new issue