update feedback api field
All checks were successful
deploy / build-and-deploy (push) Successful in 20s
All checks were successful
deploy / build-and-deploy (push) Successful in 20s
This commit is contained in:
@@ -7,14 +7,14 @@ export const POST = externalApi({
|
||||
input: z.object({
|
||||
event: z.string(),
|
||||
title: z.string(),
|
||||
uuids: z.array(z.string())
|
||||
users: z.array(z.string())
|
||||
}),
|
||||
auth: true,
|
||||
handler: async ({ input }) => {
|
||||
const feedbacks = await db.addUserFeedbacks({
|
||||
event: input.event,
|
||||
title: input.title,
|
||||
uuids: input.uuids
|
||||
uuids: input.users
|
||||
});
|
||||
|
||||
const response = feedbacks.map((feedback) => ({
|
||||
|
||||
Reference in New Issue
Block a user