6995-testToMaster_2410 #2139

Merged
alexm merged 236 commits from 6995-testToMaster_2410 into master 2024-03-07 07:09:08 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit f9ea77fa39 - Show all commits

View File

@ -16,7 +16,7 @@ const validations = [{
module = module.substring(0, module.length - 1);
model = models[module];
}
if (!model) throw new UserError('');
if (!model) throw new Error('No matching model found');
const {accepts} = model.sharedClass.methods().find(method => method.name === path);
for (const [key, value] of Object.entries(body)) {
const accept = accepts.find(acc => acc.arg === key);