fix: missing nextId field for collection forms

This commit is contained in:
Sonny
2024-05-26 00:48:13 +02:00
committed by Sonny
parent 14d051a9d6
commit f3f7f6272f
5 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ export const createCollectionValidator = vine.compile(
name: vine.string().trim().minLength(1).maxLength(254),
description: vine.string().trim().maxLength(254).nullable(),
visibility: vine.enum(Visibility),
nextId: vine.number(),
nextId: vine.number().optional(),
})
);
@@ -19,7 +19,7 @@ export const updateCollectionValidator = vine.compile(
name: vine.string().trim().minLength(1).maxLength(254),
description: vine.string().trim().maxLength(254).nullable(),
visibility: vine.enum(Visibility),
nextId: vine.number(),
nextId: vine.number().optional(),
params,
})