Implementiere i18n für Frontend, Admin und Datenbank
This commit is contained in:
@@ -98,14 +98,14 @@ export async function DELETE(request: Request) {
|
||||
where: { id: puzzle.specialId }
|
||||
});
|
||||
if (special) {
|
||||
newPuzzle = await getOrCreateSpecialPuzzle(special.name);
|
||||
newPuzzle = await getOrCreateSpecialPuzzle(special);
|
||||
}
|
||||
} else if (puzzle.genreId) {
|
||||
const genre = await prisma.genre.findUnique({
|
||||
where: { id: puzzle.genreId }
|
||||
});
|
||||
if (genre) {
|
||||
newPuzzle = await getOrCreateDailyPuzzle(genre.name);
|
||||
newPuzzle = await getOrCreateDailyPuzzle(genre);
|
||||
}
|
||||
} else {
|
||||
newPuzzle = await getOrCreateDailyPuzzle(null);
|
||||
|
||||
Reference in New Issue
Block a user