Skip to content

Commit

Permalink
fix(tabstractdatacontroller): fix transfert parameter to super class
Browse files Browse the repository at this point in the history
  • Loading branch information
Itee committed Jul 7, 2021
1 parent c50a7fd commit b3fcb95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sources/controllers/TAbstractDataController.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TAbstractDataController extends TAbstractResponder {
...parameters
}

super()
super(_parameters)

/**
* The database drive to use internally
Expand Down
10 changes: 10 additions & 0 deletions sources/databases/TAbstractResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit b3fcb95

Please sign in to comment.