Skip to content

Commit 22af81f

Browse files
feat: Removed the Nested try catch block
1 parent dda7c06 commit 22af81f

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SubOS Configuration
2-
NEXT_PUBLIC_SUBOS_API_ENDPOINT=http://localhost:3001/api/v1
3-
NEXT_PUBLIC_SUBOS_PROJECT_ID=6e345492-b998-42b3-9ade-28fbd40cbe26
4-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51HhxSOCrJ3GsEX1jUwKOcL84vVSicYcdAVTwpEJloutnPyYjrpJ4HJP4F5mkDbDWXkMUy120TExPIV9BWM6SiIZj00yFdpHVmT
2+
NEXT_PUBLIC_SUBOS_API_ENDPOINT=
3+
NEXT_PUBLIC_SUBOS_PROJECT_ID=
4+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
55

66
# App Configuration
77
NEXT_PUBLIC_APP_NAME=Impler.io

apps/api/src/app/common/usecases/get-import-config/get-import-config.usecase.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ export class GetImportConfig {
2222

2323
try {
2424
for (const billableMetricCode of Object.keys(BILLABLEMETRIC_CODE_ENUM)) {
25-
try {
26-
const isAvailable = await this.paymentAPIService.checkEvent({
27-
email: userEmail,
28-
billableMetricCode: BILLABLEMETRIC_CODE_ENUM[billableMetricCode],
29-
});
30-
isFeatureAvailableMap.set(billableMetricCode, isAvailable);
31-
} catch (error) {}
25+
const isAvailable = await this.paymentAPIService.checkEvent({
26+
email: userEmail,
27+
billableMetricCode: BILLABLEMETRIC_CODE_ENUM[billableMetricCode],
28+
});
29+
isFeatureAvailableMap.set(billableMetricCode, isAvailable);
3230
}
3331
} catch (error) {}
3432

0 commit comments

Comments
 (0)