-
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 User Has Seen New Dashboard (PIX-14451).
- Loading branch information
Showing
14 changed files
with
110 additions
and
68 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 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
2 changes: 1 addition & 1 deletion
2
api/src/evaluation/domain/usecases/remember-user-has-seen-level-seven-info.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const rememberUserHasSeenLevelSevenInfo = function ({ userId, userRepository }) { | ||
return userRepository.update({ userId }); | ||
return userRepository.updateMarkLevelSevenInfoAsSeen({ userId }); | ||
}; | ||
|
||
export { rememberUserHasSeenLevelSevenInfo }; |
2 changes: 1 addition & 1 deletion
2
...ember-user-has-seen-new-dashboard-info.js → ...ember-user-has-seen-new-dashboard-info.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const rememberUserHasSeenNewDashboardInfo = function ({ userId, userRepository }) { | ||
return userRepository.updateHasSeenNewDashboardInfoToTrue(userId); | ||
return userRepository.updateHasSeenNewDashboardInfo({ userId }); | ||
}; | ||
|
||
export { rememberUserHasSeenNewDashboardInfo }; |
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
14 changes: 14 additions & 0 deletions
14
...entity-access-management/domain/usecases/mark-user-has-seen-new-dashboard-info.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,14 @@ | ||
/** | ||
* @typedef {import ('../../domain/usecases/index.js').UserRepository} UserRepository | ||
*/ | ||
|
||
/** | ||
* @param {Object} params | ||
* @param {number} params.userId | ||
* @param {UserRepository} params.userRepository | ||
*/ | ||
const markUserHasSeenNewDashboardInfo = function ({ userId, userRepository }) { | ||
return userRepository.updateHasSeenNewDashboardInfoToTrue(userId); | ||
}; | ||
|
||
export { markUserHasSeenNewDashboardInfo }; |
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 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 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