feat(hunt): Add bingo board to hunts
This commit is contained in:
@@ -31,6 +31,7 @@ export default defineEventHandler(async (event) => {
|
||||
title_en: true,
|
||||
description_de: true,
|
||||
description_en: true,
|
||||
isBingo: true,
|
||||
question_de: true,
|
||||
question_en: true,
|
||||
location: true,
|
||||
|
||||
@@ -42,6 +42,7 @@ export default defineEventHandler(async (event) => {
|
||||
title_en: z.string().min(1).max(256).trim(),
|
||||
description_de: z.string().max(2000).trim().default(''),
|
||||
description_en: z.string().max(2000).trim().default(''),
|
||||
isBingo: z.boolean().default(false),
|
||||
question_de: z.string().max(1000).trim().nullish(),
|
||||
question_en: z.string().max(1000).trim().nullish(),
|
||||
location: z.string().max(256).trim().nullish(),
|
||||
|
||||
@@ -39,6 +39,7 @@ export default defineEventHandler(async (event) => {
|
||||
id: true,
|
||||
title_de: true,
|
||||
title_en: true,
|
||||
isBingo: true,
|
||||
order: true,
|
||||
points: true,
|
||||
optional: true,
|
||||
|
||||
@@ -43,6 +43,7 @@ export default defineEventHandler(async (event) => {
|
||||
title_en: z.string().min(1).max(256).trim(),
|
||||
description_de: z.string().max(2000).trim().default(''),
|
||||
description_en: z.string().max(2000).trim().default(''),
|
||||
isBingo: z.boolean().default(false),
|
||||
question_de: z.string().max(1000).trim().nullish(),
|
||||
question_en: z.string().max(1000).trim().nullish(),
|
||||
location: z.string().max(256).trim().nullish(),
|
||||
|
||||
@@ -86,6 +86,7 @@ export default defineEventHandler(async (event) => {
|
||||
title_en: true,
|
||||
description_de: true,
|
||||
description_en: true,
|
||||
isBingo: true,
|
||||
picture: {
|
||||
select: {
|
||||
url: true
|
||||
@@ -197,7 +198,6 @@ export default defineEventHandler(async (event) => {
|
||||
0
|
||||
);
|
||||
|
||||
// TODO: filter out questions before start
|
||||
return {
|
||||
isMember,
|
||||
ownTeam,
|
||||
|
||||
@@ -22,6 +22,7 @@ export default defineEventHandler(async (event) => {
|
||||
title_en: true,
|
||||
description_de: true,
|
||||
description_en: true,
|
||||
isBingo: true,
|
||||
picture: {
|
||||
select: {
|
||||
url: true
|
||||
|
||||
Reference in New Issue
Block a user