add feedback blank filter option

This commit is contained in:
2026-01-03 19:23:30 +01:00
parent dd063c568d
commit a197c002f4
7 changed files with 36 additions and 15 deletions

View File

@@ -38,11 +38,14 @@ export const feedback = {
}
}),
feedbacks: defineAction({
handler: async (_, context) => {
input: z.object({
includeBlanks: z.boolean()
}),
handler: async (input, context) => {
Session.actionSessionFromCookies(context.cookies, Permissions.Feedback);
return {
feedbacks: await db.getFeedbacks({})
feedbacks: await db.getFeedbacks({ includeBlanks: input.includeBlanks })
};
}
})