Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
PahaKoha committed Oct 22, 2023
1 parent e5fbbbf commit 43e6f89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/domain/service/userListService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class UserListService {
*/
public async getUserList(): Promise<UserList> {
return {
users: await this.repository.getUserList(),
users: await this.repository.getAllUsers(),
};
}
}
2 changes: 1 addition & 1 deletion src/repository/storage/postgres/orm/sequelize/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default class UserSequelizeStorage {
* Get list users
* @returns { Promise<UserList> } - found all users
*/
public async getUserList(): Promise<User[]> {
public async getAllUsers(): Promise<User[]> {
const userList = await this.model.findAll({ });

return userList;
Expand Down
4 changes: 2 additions & 2 deletions src/repository/userList.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class UserListRepository {
*
* @returns { Promise<UserList> } user
*/
public async getUserList(): Promise<User[]> {
return await this.storage.getUserList();
public async getAllUsers(): Promise<User[]> {
return await this.storage.getAllUsers();
}
}

0 comments on commit 43e6f89

Please sign in to comment.