diff --git a/packages/server/src/api/routes/public/middleware/mapper.ts b/packages/server/src/api/routes/public/middleware/mapper.ts index f3c994bb9b..03feb6cc5c 100644 --- a/packages/server/src/api/routes/public/middleware/mapper.ts +++ b/packages/server/src/api/routes/public/middleware/mapper.ts @@ -19,7 +19,7 @@ function isArrayResponse(ctx: Ctx) { } function noResponse(ctx: Ctx) { - return Object.keys(ctx.body).length === 0 + return !Array.isArray(ctx.body) && Object.keys(ctx.body).length === 0 } function processApplications(ctx: Ctx) {