-
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.
feat(api): remove has-seen-level-seven-info usage
- Loading branch information
Showing
21 changed files
with
4 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import * as userSerializer from '../../../shared/infrastructure/serializers/jsonapi/user-serializer.js'; | ||
import { evaluationUsecases as usecases } from '../../domain/usecases/index.js'; | ||
|
||
const rememberUserHasSeenLevelSevenInfo = async function (request, h, dependencies = { userSerializer }) { | ||
const authenticatedUserId = request.auth.credentials.userId; | ||
|
||
const updatedUser = await usecases.rememberUserHasSeenLevelSevenInfo({ userId: authenticatedUserId }); | ||
return dependencies.userSerializer.serialize(updatedUser); | ||
}; | ||
|
||
const rememberUserHasSeenNewDashboardInfo = async function (request, h, dependencies = { userSerializer }) { | ||
const authenticatedUserId = request.auth.credentials.userId; | ||
|
||
const updatedUser = await usecases.rememberUserHasSeenNewDashboardInfo({ userId: authenticatedUserId }); | ||
return dependencies.userSerializer.serialize(updatedUser); | ||
}; | ||
|
||
const userController = { rememberUserHasSeenLevelSevenInfo, rememberUserHasSeenNewDashboardInfo }; | ||
const userController = { rememberUserHasSeenNewDashboardInfo }; | ||
|
||
export { userController }; |
5 changes: 0 additions & 5 deletions
5
api/src/evaluation/domain/usecases/remember-user-has-seen-level-seven-info.js
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
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
13 changes: 0 additions & 13 deletions
13
...cess-management/domain/usecases/remember-user-has-seen-level-seven-information.usecase.js
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
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
71 changes: 0 additions & 71 deletions
71
api/tests/evaluation/acceptance/application/users/user-controller_test.js
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
20 changes: 0 additions & 20 deletions
20
api/tests/evaluation/unit/domain/usecases/remember-user-has-seen-level-seven-info_test.js
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
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
21 changes: 0 additions & 21 deletions
21
...ement/unit/domain/usecases/remember-user-has-seen-level-seven-information.usecase.test.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.