Update through table error message

This commit is contained in:
Mel O'Hagan 2023-01-19 14:14:29 +00:00
parent 9729c20e9d
commit b4dcdfa84f
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@
errObj.through = tableNotSet
}
if ($touched.through && invalidThroughTable(fromRelate)) {
errObj.through =
"Ensure all columns in table are nullable or auto generated"
errObj.through = "Ensure non-key columns are nullable or auto-generated"
}
if ($touched.foreign && !isMany && !fromRelate.fieldName) {
errObj.foreign = "Please pick the foreign key"