File tree Expand file tree Collapse file tree 3 files changed +0
-97
lines changed Expand file tree Collapse file tree 3 files changed +0
-97
lines changed Original file line number Diff line number Diff line change 9
9
SubmissionResponseDto ,
10
10
SubmissionUpdateRequestDto ,
11
11
} from 'src/dto/submission.dto' ;
12
- import { MockedData } from 'src/mock/mock.data' ;
13
12
import { JwtUser } from 'src/shared/modules/global/jwt.service' ;
14
13
import { PrismaService } from 'src/shared/modules/global/prisma.service' ;
15
14
import { Utils } from 'src/shared/modules/global/utils.service' ;
@@ -107,9 +106,6 @@ export class SubmissionService {
107
106
}
108
107
109
108
async getSubmission ( submissionId : string ) : Promise < SubmissionResponseDto > {
110
- // TODO mocked data only, remove when challenge is concluded
111
- return MockedData . getSubmissionById ( submissionId ) ;
112
-
113
109
const data = await this . checkSubmission ( submissionId ) ;
114
110
return this . buildResponse ( data ) ;
115
111
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { AxiosError } from 'axios';
6
6
import { M2MService } from './m2m.service' ;
7
7
import { Injectable , Logger } from '@nestjs/common' ;
8
8
import { CommonConfig } from 'src/shared/config/common.config' ;
9
- import { MockedData } from 'src/mock/mock.data' ;
10
9
11
10
export class ChallengeData {
12
11
id : string ;
@@ -46,9 +45,6 @@ export class ChallengeApiService {
46
45
}
47
46
48
47
async getChallengeDetail ( challengeId : string ) : Promise < ChallengeData > {
49
- // TODO mocked data only, remove when challenge is concluded
50
- return MockedData . getChallengeDetail ( challengeId ) ;
51
-
52
48
// Get M2m token
53
49
const token = await this . m2mService . getM2MToken ( ) ;
54
50
// Send request to challenge api
You can’t perform that action at this time.
0 commit comments