Skip to content

Commit be3d8ea

Browse files
authored
fix(api): remove previously deleted methods regarding leven seven info
1 parent f71a97e commit be3d8ea

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

api/src/evaluation/application/users/user-controller.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import * as userSerializer from '../../../shared/infrastructure/serializers/jsonapi/user-serializer.js';
22
import { evaluationUsecases as usecases } from '../../domain/usecases/index.js';
33

4-
const rememberUserHasSeenLevelSevenInfo = async function (request, h, dependencies = { userSerializer }) {
5-
const authenticatedUserId = request.auth.credentials.userId;
6-
7-
const updatedUser = await usecases.rememberUserHasSeenLevelSevenInfo({ userId: authenticatedUserId });
8-
return dependencies.userSerializer.serialize(updatedUser);
9-
};
10-
114
const rememberUserHasSeenNewDashboardInfo = async function (request, h, dependencies = { userSerializer }) {
125
const authenticatedUserId = request.auth.credentials.userId;
136

@@ -23,7 +16,6 @@ const rememberUserHasSeenAssessmentInstructions = async function (request, h, de
2316
};
2417

2518
const userController = {
26-
rememberUserHasSeenLevelSevenInfo,
2719
rememberUserHasSeenNewDashboardInfo,
2820
rememberUserHasSeenAssessmentInstructions,
2921
};

api/src/evaluation/infrastructure/repositories/user-repository.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
* @typedef {import ('./index.js').UserApi} UserApi
33
*/
44

5-
/**
6-
* @function
7-
* @param {Object} params
8-
* @param {UserApi} params.userApi
9-
*/
10-
const updateMarkLevelSevenInfoAsSeen = async function ({ userId, userApi }) {
11-
return userApi.markLevelSevenInfoAsSeen({ userId });
12-
};
13-
145
/**
156
* @function
167
* @param {Object} params
@@ -31,4 +22,4 @@ const updateAssessmentInstructionsInfoAsSeen = async function ({ userId, userApi
3122
return userApi.markAssessmentInstructionsInfoAsSeen({ userId });
3223
};
3324

34-
export { updateAssessmentInstructionsInfoAsSeen, updateHasSeenNewDashboardInfo, updateMarkLevelSevenInfoAsSeen };
25+
export { updateAssessmentInstructionsInfoAsSeen, updateHasSeenNewDashboardInfo };

0 commit comments

Comments
 (0)