-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): move get-user-details-for-admin usecase
in src/identity-access-management
- Loading branch information
Showing
5 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
api/src/identity-access-management/domain/usecases/get-user-details-for-admin.usecase.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @param {Object} params | ||
* @param {string} params.userId | ||
* @param {UserRepository} userRepository | ||
* @throws UserNotFoundError | ||
* @returns {Promise<UserDetailsForAdmin>} | ||
*/ | ||
const getUserDetailsForAdmin = async function ({ userId, userRepository }) { | ||
return await userRepository.getUserDetailsForAdmin(userId); | ||
}; | ||
|
||
export { getUserDetailsForAdmin }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ecases/get-user-details-for-admin_test.js → ...et-user-details-for-admin.usecase.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters