Skip to content

Commit

Permalink
fix: create instance of transformedObj
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSudip committed Oct 9, 2023
1 parent 5e762fc commit 37495e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/eventTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class EventTestController {
};
ctx.status = 400;
}
ctx.set('apiVersion', this.API_VERSION);
ctx.set('apiVersion', EventTestController.API_VERSION);
}

public static status(ctx: Context) {
Expand Down
4 changes: 2 additions & 2 deletions src/services/eventTest/eventTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class EventTesterService {
function capitalize(s) {
return s === 'id' ? s.toUpperCase() : s.charAt(0).toUpperCase() + s.slice(1);
}
let transformedObj: FixMe;
const transformedObj: FixMe = {};
const { destinationDefinition } = dest;
Object.keys(dest).forEach((key) => {
transformedObj[capitalize(key)] = dest[key];
Expand Down Expand Up @@ -54,7 +54,7 @@ export default class EventTesterService {
libraries,
};

let response: FixMe;
let response: FixMe = {};
let errorFound = false;

if (stage.user_transform) {
Expand Down

0 comments on commit 37495e3

Please sign in to comment.