mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
fix: unable to submit 3ds miis
This commit is contained in:
parent
7e10cef0b8
commit
8dfd1d0b12
6 changed files with 806 additions and 70 deletions
|
|
@ -38,7 +38,7 @@ const submitSchema = z.object({
|
|||
.trim()
|
||||
.transform((val) => (val === "" ? null : val))
|
||||
.refine((val) => val === null || /^[a-zA-Z0-9_-]{11}$/.test(val), "Invalid YouTube video ID")
|
||||
.optional(),
|
||||
.nullish(),
|
||||
|
||||
way: z.enum(["savedata", "manual"]).optional(),
|
||||
|
||||
|
|
@ -102,8 +102,8 @@ export async function POST(request: NextRequest) {
|
|||
gender: formData.get("gender") ?? undefined, // ZOD MOMENT
|
||||
makeup: formData.get("makeup") ?? undefined,
|
||||
miiPortraitImage: formData.get("miiPortraitImage"),
|
||||
youtubeId: formData.get("youtubeId"),
|
||||
way: formData.get("way"),
|
||||
youtubeId: formData.get("youtubeId") ?? undefined,
|
||||
way: formData.get("way") ?? undefined,
|
||||
|
||||
miiDataFile: formData.get("miiDataFile") ?? undefined,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue