Skip to content

Commit

Permalink
fix(api): remove previously deleted methods regarding leven seven info
Browse files Browse the repository at this point in the history
  • Loading branch information
Libouk committed Dec 2, 2024
1 parent 316bd82 commit 0042747
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
8 changes: 0 additions & 8 deletions api/src/evaluation/application/users/user-controller.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
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;

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

const userController = {
rememberUserHasSeenLevelSevenInfo,
rememberUserHasSeenNewDashboardInfo,
rememberUserHasSeenAssessmentInstructions,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
* @typedef {import ('./index.js').UserApi} UserApi
*/

/**
* @function
* @param {Object} params
* @param {UserApi} params.userApi
*/
const updateMarkLevelSevenInfoAsSeen = async function ({ userId, userApi }) {
return userApi.markLevelSevenInfoAsSeen({ userId });
};

/**
* @function
* @param {Object} params
Expand All @@ -31,4 +22,4 @@ const updateAssessmentInstructionsInfoAsSeen = async function ({ userId, userApi
return userApi.markAssessmentInstructionsInfoAsSeen({ userId });
};

export { updateAssessmentInstructionsInfoAsSeen, updateHasSeenNewDashboardInfo, updateMarkLevelSevenInfoAsSeen };
export { updateAssessmentInstructionsInfoAsSeen, updateHasSeenNewDashboardInfo };

0 comments on commit 0042747

Please sign in to comment.