From 43e6f89ef8d4eb48ba55f62f7b1afca6a3ed433d Mon Sep 17 00:00:00 2001 From: paha_koha Date: Sun, 22 Oct 2023 15:24:02 +0300 Subject: [PATCH] Fixed code style --- src/domain/service/userListService.ts | 2 +- src/repository/storage/postgres/orm/sequelize/user.ts | 2 +- src/repository/userList.repository.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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