1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +12:00

Copy change

This commit is contained in:
Adria Navarro 2024-05-30 11:46:57 +02:00
parent fbfe85c903
commit 6ce0b3c368
2 changed files with 3 additions and 6 deletions

View file

@ -424,7 +424,7 @@ describe.each([
await config.api.viewV2.create(newView, {
status: 400,
body: {
message: "Readonly fields are not enabled for your tenant",
message: "Readonly fields are not enabled",
status: 400,
},
})
@ -690,7 +690,7 @@ describe.each([
await config.api.viewV2.update(view, {
status: 400,
body: {
message: "Readonly fields are not enabled for your tenant",
message: "Readonly fields are not enabled",
},
})
})

View file

@ -55,10 +55,7 @@ async function guardViewSchema(
if (viewSchema[field].readonly) {
if (!(await features.isViewReadonlyColumnsEnabled())) {
throw new HTTPError(
`Readonly fields are not enabled for your tenant`,
400
)
throw new HTTPError(`Readonly fields are not enabled`, 400)
}
if (isRequired(tableSchemaField.constraints)) {