Skip to content

Commit

Permalink
refactor: Rename util method hydrateRouterLog
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Feb 26, 2022
1 parent 026ed03 commit af3b06d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Medusa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Medusa {

await migrationsLoader(moduleComponentsOptions.get('migration') ?? [], dbConnection);

Utils.hydrateRouteLog(this.#express);
Utils.hydrateRouterLog(this.#express);
Utils.displayLogs();
return container as unknown as AwilixContainer;
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ export class Utils {
* Prepare the logs the show all available routes on the app.
* @param app
*/
static hydrateRouteLog(app: Express): void {
static hydrateRouterLog(app: Express): void {
const endPoints = getEndpoints(app);
for (const endPoint of endPoints) {
endPoint.methods.map((method) => {
this.hydrateLog('MedusaLoader', 'Route Mapped {/%s, %s}', endPoint.path, method);
this.hydrateLog('MedusaLoader', 'Route Mapped {%s, %s}', endPoint.path, method);
});
}
}
Expand Down

0 comments on commit af3b06d

Please sign in to comment.