feat(specials): add curator field

This commit is contained in:
Hördle Bot
2025-11-23 02:25:45 +01:00
parent 6fd5f8ed0c
commit 2a38bce02c
6 changed files with 41 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ export async function PUT(
try {
const { id } = await params;
const specialId = parseInt(id);
const { name, maxAttempts, unlockSteps, launchDate, endDate } = await request.json();
const { name, maxAttempts, unlockSteps, launchDate, endDate, curator } = await request.json();
const special = await prisma.special.update({
where: { id: specialId },
@@ -53,6 +53,7 @@ export async function PUT(
unlockSteps: typeof unlockSteps === 'string' ? unlockSteps : JSON.stringify(unlockSteps),
launchDate: launchDate ? new Date(launchDate) : null,
endDate: endDate ? new Date(endDate) : null,
curator: curator || null,
}
});