mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:17:00 +00:00
chore: error message
This commit is contained in:
parent
00ce83e236
commit
bc4762e59c
@ -249,6 +249,11 @@ export class OptionsParser {
|
||||
}
|
||||
|
||||
if (appendFields.length == 2) {
|
||||
const association = associations[appendFields[0]];
|
||||
if (!association) {
|
||||
throw new Error(`association ${appendFields[0]} in ${model.name} not found`);
|
||||
}
|
||||
|
||||
const associationModel = associations[appendFields[0]].target;
|
||||
if (associationModel.rawAttributes[appendFields[1]]) {
|
||||
lastLevel = true;
|
||||
|
Loading…
Reference in New Issue
Block a user