Skip to content

Commit 4ea6715

Browse files
refactor(api): remove flash-assessment-result-repository
1 parent f586d18 commit 4ea6715

File tree

4 files changed

+0
-53
lines changed

4 files changed

+0
-53
lines changed

api/lib/infrastructure/repositories/flash-assessment-result-repository.js

-16
This file was deleted.

api/src/evaluation/domain/usecases/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { dirname, join } from 'node:path';
22
import { fileURLToPath } from 'node:url';
33

4-
import * as flashAssessmentResultRepository from '../../../../lib/infrastructure/repositories/flash-assessment-result-repository.js';
54
import * as certificationEvaluationCandidateRepository from '../../../certification/evaluation/infrastructure/repositories/certification-candidate-repository.js';
65
import * as flashAlgorithmService from '../../../certification/flash-certification/domain/services/algorithm-methods/flash.js';
76
import * as certificationChallengeLiveAlertRepository from '../../../certification/shared/infrastructure/repositories/certification-challenge-live-alert-repository.js';
@@ -70,7 +69,6 @@ const dependencies = {
7069
feedbackRepository,
7170
flashAlgorithmConfigurationRepository,
7271
flashAlgorithmService,
73-
flashAssessmentResultRepository,
7472
getCompetenceLevel,
7573
improvementService,
7674
knowledgeElementRepository: injectedSharedRepositories.knowledgeElementRepository,

api/src/prescription/campaign-participation/infrastructure/repositories/participant-result-repository.js

-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ async function _getParticipationResults(userId, campaignId) {
7676
participantExternalId,
7777
masteryRate,
7878
status,
79-
isFlash,
8079
assessmentId,
8180
isDeleted,
8281
} = await _getParticipationAttributes(userId, campaignId);
@@ -97,7 +96,6 @@ async function _getParticipationResults(userId, campaignId) {
9796
acquiredBadgeIds: acquiredBadgeIds.map(({ badgeId }) => badgeId),
9897
isDeleted,
9998
assessmentId,
100-
isFlash,
10199
};
102100
}
103101

@@ -111,7 +109,6 @@ async function _getParticipationAttributes(userId, campaignId) {
111109
'assessments.createdAt AS assessmentCreatedAt',
112110
'participantExternalId',
113111
knex.raw('CAST("masteryRate" AS FLOAT)'),
114-
'method',
115112
'assessments.id AS assessmentId',
116113
'deletedAt',
117114
])
@@ -134,7 +131,6 @@ async function _getParticipationAttributes(userId, campaignId) {
134131
assessmentCreatedAt,
135132
participantExternalId,
136133
masteryRate,
137-
method,
138134
assessmentId,
139135
deletedAt,
140136
} = participationAttributes;
@@ -147,7 +143,6 @@ async function _getParticipationAttributes(userId, campaignId) {
147143
assessmentCreatedAt,
148144
participantExternalId,
149145
masteryRate,
150-
isFlash: method === Assessment.methods.FLASH,
151146
assessmentId,
152147
isDeleted: Boolean(deletedAt),
153148
};

api/tests/integration/infrastructure/repositories/flash-assessment-result-repository_test.js

-30
This file was deleted.

0 commit comments

Comments
 (0)