1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 07:06:22 +09:00
This commit is contained in:
syuilo 2022-12-10 15:25:39 +09:00
parent 020cd5cc02
commit b4b742ca89

View File

@ -147,6 +147,7 @@ export class ApiCallService implements OnApplicationShutdown {
private send(reply: FastifyReply, x?: any, y?: ApiError) {
if (x == null) {
reply.code(204);
reply.send();
} else if (typeof x === 'number' && y) {
reply.code(x);
reply.send({