-
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.
[TECH] Migrer la route GET /api/admin/users/{id} dans src (PIX-15170)
- Loading branch information
Showing
14 changed files
with
299 additions
and
308 deletions.
There are no files selected for viewing
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
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
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
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 }; |
153 changes: 0 additions & 153 deletions
153
api/tests/acceptance/application/users/users-controller-get-user-details-for-admin_test.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.