Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nataniel López committed Apr 21, 2022
1 parent 1543ab0 commit 7c0be97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ The `APICreate` and `listeners` have a hook for post processing the client or cl

#### APICreate

#### `postSaveHook(clientCodes)`
Receives the clientCodes from the API.
#### `postSaveHook(clientCodes, clients)`
Receives the clientCodes and clients from the API.

Parameters:
- clientCodes `string Array`: The client created codes.
Expand Down Expand Up @@ -339,7 +339,7 @@ module.exports = ClientCreateAPI;

#### Listener Created
#### `postSaveHook(clientCode, client)`
Receives the clientCode from the event.
Receives the clientCode and client from the event.

Parameters:
- clientCode `string`: The client created code of the created client.
Expand Down
2 changes: 1 addition & 1 deletion lib/api-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = class ClientCreateAPI extends API {
}

if(clients.length !== clientCodes.length)
logger.warn('Some clients couldn\'t be get from Janis ID service, they won\'t be created.');
logger.warn('Some clients couldn\'t be obtained from Janis ID service, they won\'t be created.');

const clientsToCreate = await ClientModel.formatForCreate(clients);

Expand Down

0 comments on commit 7c0be97

Please sign in to comment.