adapt-authoring-api 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AbstractApiModule.js +1 -1
- package/package.json +1 -1
package/lib/AbstractApiModule.js
CHANGED
|
@@ -381,7 +381,7 @@ class AbstractApiModule extends AbstractModule {
|
|
|
381
381
|
}
|
|
382
382
|
if (Array.isArray(data) && req.params._id) { // special case for when _id param is present
|
|
383
383
|
if (!data.length) {
|
|
384
|
-
return next(this.app.errors.NOT_FOUND.setData({ id: req.params.
|
|
384
|
+
return next(this.app.errors.NOT_FOUND.setData({ id: req.params._id, type: req.apiData.schemaName }))
|
|
385
385
|
}
|
|
386
386
|
data = data[0]
|
|
387
387
|
}
|