diff --git a/src/domain/service/userListService.ts b/src/domain/service/userListService.ts index b2dde1d2..14e9cc46 100644 --- a/src/domain/service/userListService.ts +++ b/src/domain/service/userListService.ts @@ -23,7 +23,7 @@ export default class UserListService { */ public async getUserList(): Promise { return { - users: await this.repository.getUserList(), + users: await this.repository.getAllUsers(), }; } } \ No newline at end of file diff --git a/src/repository/storage/postgres/orm/sequelize/user.ts b/src/repository/storage/postgres/orm/sequelize/user.ts index dd447c6c..3aba5c2e 100644 --- a/src/repository/storage/postgres/orm/sequelize/user.ts +++ b/src/repository/storage/postgres/orm/sequelize/user.ts @@ -287,7 +287,7 @@ export default class UserSequelizeStorage { * Get list users * @returns { Promise } - found all users */ - public async getUserList(): Promise { + public async getAllUsers(): Promise { const userList = await this.model.findAll({ }); return userList; diff --git a/src/repository/userList.repository.ts b/src/repository/userList.repository.ts index 9066449d..90645ca1 100644 --- a/src/repository/userList.repository.ts +++ b/src/repository/userList.repository.ts @@ -21,7 +21,7 @@ export default class UserListRepository { * * @returns { Promise } user */ - public async getUserList(): Promise { - return await this.storage.getUserList(); + public async getAllUsers(): Promise { + return await this.storage.getAllUsers(); } } \ No newline at end of file