diff --git a/data-queryable.js b/data-queryable.js index a96a406..7924189 100644 --- a/data-queryable.js +++ b/data-queryable.js @@ -2744,6 +2744,8 @@ function afterExecute_(result, callback) { return cb(err); }); } + // throw association error if mapping is not set + return cb(new DataError('EASSOC', sprintf('Data association mapping (%s) for %s cannot be determined.', mapping.refersTo, self.model.name))); } else { return cb(new Error('Not yet implemented')); diff --git a/package-lock.json b/package-lock.json index a80f35f..48b4c6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@themost/data", - "version": "2.6.98", + "version": "2.6.99", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 40fb48f..4cd7669 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@themost/data", - "version": "2.6.98", + "version": "2.6.99", "description": "MOST Web Framework Codename Blueshift - Data module", "main": "index.js", "types": "index.d.ts",