update feedback api field
All checks were successful
deploy / build-and-deploy (push) Successful in 20s

This commit is contained in:
2025-10-19 13:50:43 +02:00
parent a37ecffd85
commit ec5ec800de

View File

@@ -7,14 +7,14 @@ export const POST = externalApi({
input: z.object({ input: z.object({
event: z.string(), event: z.string(),
title: z.string(), title: z.string(),
uuids: z.array(z.string()) users: z.array(z.string())
}), }),
auth: true, auth: true,
handler: async ({ input }) => { handler: async ({ input }) => {
const feedbacks = await db.addUserFeedbacks({ const feedbacks = await db.addUserFeedbacks({
event: input.event, event: input.event,
title: input.title, title: input.title,
uuids: input.uuids uuids: input.users
}); });
const response = feedbacks.map((feedback) => ({ const response = feedbacks.map((feedback) => ({