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({
|
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) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user