Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
juanhapes committed May 28, 2020
1 parent 8e9cf5a commit 9ed3abf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [2.0.1] - 2020-05-28
### Fixed
- Now client model formatted have bigger priority than `janiscommercerc` settings

## [2.0.0] - 2020-05-28
### Changed
- Settings in `janiscommercerc.json` now are no longer mapped, the newClients settings will be setted in the new client document
Expand Down
4 changes: 2 additions & 2 deletions lib/api-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class ClientCreateAPI extends API {

const clientsToCreate = clientCodes.map(code => {
return {
...this.clientModel.getFormattedClient(code),
...databaseSettings
...databaseSettings,
...this.clientModel.getFormattedClient(code)
};
});

Expand Down
4 changes: 2 additions & 2 deletions lib/listener-created.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class ClientCreatedListener extends EventListener {
const databaseSettings = Settings.get('database')[this.clientModel.newClientsDatabaseKey];

await this.clientModel.save({
...this.clientModel.getFormattedClient(clientCode),
...databaseSettings
...databaseSettings,
...this.clientModel.getFormattedClient(clientCode)
});

await mongoDBIndexCreator.executeForClientCode(clientCode);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@janiscommerce/client-creator",
"version": "2.0.0",
"version": "2.0.1",
"description": "A packge that wraps all the client creation in a JANIS Service",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9ed3abf

Please sign in to comment.