Closed dotmh closed 5 years ago
For this we need to allow the endpoint to be set by the end user. We therefore need to change the code in https://github.com/dotmh/dyn-o-might/blob/e3d59cbb553afd1968d22d0cb9edec0dbdaefd05/index.js#L3 to use the constructer i.e. new.
The other step will be to add an options parameter to the class so that options for the dynamoDB constructor can be set when the class is constructed.
Already is , as the instance used by DB is controlled from outside of Dynomight by the calling code.
For this we need to allow the endpoint to be set by the end user. We therefore need to change the code in https://github.com/dotmh/dyn-o-might/blob/e3d59cbb553afd1968d22d0cb9edec0dbdaefd05/index.js#L3 to use the constructer i.e. new.
The other step will be to add an options parameter to the class so that options for the dynamoDB constructor can be set when the class is constructed.