diff --git a/sources/controllers/TAbstractDataController.js b/sources/controllers/TAbstractDataController.js index 8df72dd..55bee55 100644 --- a/sources/controllers/TAbstractDataController.js +++ b/sources/controllers/TAbstractDataController.js @@ -71,7 +71,7 @@ class TAbstractDataController extends TAbstractResponder { ...parameters } - super() + super(_parameters) /** * The database drive to use internally diff --git a/sources/databases/TAbstractResponder.js b/sources/databases/TAbstractResponder.js index 234dea4..e324fa9 100644 --- a/sources/databases/TAbstractResponder.js +++ b/sources/databases/TAbstractResponder.js @@ -24,6 +24,16 @@ import { UnknownError } from '../messages/http/UnknownError' */ class TAbstractResponder extends TAbstractObject { + constructor ( parameters = {} ) { + const _parameters = { + ...{}, + ...parameters + } + + super(_parameters) + } + + /** * Normalize errors that can be in different format like single string, object, array of string, or array of object. *