Skip to content

Commit fc7a454

Browse files
author
ashleigh
committed
Released v1.2.2
1 parent cd6ed69 commit fc7a454

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/__tests__/config.module.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ describe('Config Nest Module', () => {
5555
constructor() {}
5656

5757
@Configurable()
58-
testConfig(@ConfigParam('config.doesntexists', 'test123') configKey: string) {
58+
testConfig(
59+
@ConfigParam('config.doesntexists', 'test123')
60+
configKey: string,
61+
) {
5962
return configKey;
6063
}
6164
}

src/decorators/Configurable.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ export const Configurable = (): MethodDecorator => {
1818
});
1919
return originalMethod.apply(
2020
this,
21-
applyParamsMetadataDecorator(
22-
paramsMetadata,
23-
args,
24-
ConfigService.get,
25-
),
21+
applyParamsMetadataDecorator(paramsMetadata, args, ConfigService.get),
2622
);
2723
};
2824

src/module/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class ConfigService {
7575

7676
if (configValue === undefined) {
7777
return value;
78-
}
78+
}
7979
return configValue;
8080
}
8181

0 commit comments

Comments
 (0)