File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/modules/cloud/job/transformers Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 27
27
"start:prod" : " cross-env NODE_ENV=production BUILD_TYPE=DOCKER_ON_PREMISE node dist/src/main" ,
28
28
"test" : " cross-env NODE_ENV=test ./node_modules/.bin/jest -w 1" ,
29
29
"test:watch" : " cross-env NODE_ENV=test jest --watch -w 1" ,
30
- "test:cov" : " cross-env NODE_ENV=test ./node_modules/.bin/jest --forceExit --coverage -w 1 " ,
30
+ "test:cov" : " cross-env NODE_ENV=test ./node_modules/.bin/jest --forceExit --coverage -w 4 " ,
31
31
"test:debug" : " node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand -w 1" ,
32
32
"test:e2e" : " jest --config ./test/jest-e2e.json -w 1" ,
33
33
"typeorm" : " ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d ./config/ormconfig.ts" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ import { TypeHelpOptions } from 'class-transformer';
3
3
import { CreateDatabaseCloudJobDataDto } from 'src/modules/cloud/job/dto/create-database.cloud-job.data.dto' ;
4
4
import { CloudJobName } from 'src/modules/cloud/job/constants' ;
5
5
import {
6
- CreateSubscriptionAndDatabaseCloudJobDataDto
6
+ CreateSubscriptionAndDatabaseCloudJobDataDto ,
7
7
} from 'src/modules/cloud/job/dto/create-subscription-and-database.cloud-job.data.dto' ;
8
+ import { ImportDatabaseCloudJobDataDto } from 'src/modules/cloud/job/dto/import-database.cloud-job.data.dto' ;
8
9
9
10
export const cloudJobDataTransformer = ( data : TypeHelpOptions ) => {
10
11
const jobName = get ( data ?. object , 'name' ) ;
11
12
12
13
switch ( jobName ) {
14
+ case CloudJobName . ImportFreeDatabase :
15
+ return ImportDatabaseCloudJobDataDto ;
13
16
case CloudJobName . CreateFreeDatabase :
14
17
return CreateDatabaseCloudJobDataDto ;
15
18
case CloudJobName . CreateFreeSubscription :
You can’t perform that action at this time.
0 commit comments