mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -93,7 +93,7 @@ router.post(
|
||||
throw new InvalidPayloadException(error.message);
|
||||
}
|
||||
|
||||
const field: Partial<Field> & { field: string; type: typeof types[number] } = req.body;
|
||||
const field: Partial<Field> & { field: string; type: typeof types[number] | null } = req.body;
|
||||
|
||||
await service.createField(req.params.collection, field);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user