1
0
Fork 0
mirror of synced 2024-09-09 22:16:26 +12:00

Copy change

This commit is contained in:
Adria Navarro 2024-05-31 13:30:05 +02:00
parent 5c3973d7f9
commit 5912c2b129
2 changed files with 2 additions and 3 deletions

View file

@ -349,8 +349,7 @@ describe.each([
await config.api.viewV2.create(newView, {
status: 400,
body: {
message:
'Field "name" cannot be readonly as it is a required field',
message: 'You can\'t make the required field "name" read only',
status: 400,
},
})

View file

@ -60,7 +60,7 @@ async function guardViewSchema(
if (isRequired(tableSchemaField.constraints)) {
throw new HTTPError(
`Field "${field}" cannot be readonly as it is a required field`,
`You can't make the required field "${field}" read only`,
400
)
}