From 42a1c9fe1a14a6b7a7abd4071fd48019e9989381 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 11 May 2023 10:25:51 +0200 Subject: [PATCH] set proper response status for creation --- server/utils/baaPagination.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/utils/baaPagination.ts b/server/utils/baaPagination.ts index 6920cc4..810eff4 100644 --- a/server/utils/baaPagination.ts +++ b/server/utils/baaPagination.ts @@ -1,4 +1,4 @@ -/* global defineEventHandler, getQuery, createError, readBody */ +/* global defineEventHandler, getQuery, createError, readBody, setResponseStatus */ import { QueryObject } from "ufo"; import { H3Event } from "h3"; import { ResultSetHeader } from "mysql2/promise"; @@ -146,6 +146,8 @@ export default class BaaPagination