Skip to content

Commit

Permalink
Merge pull request #431 from bcgov/remove-console-log
Browse files Browse the repository at this point in the history
Remove console log statements
  • Loading branch information
nikhila-aot authored Aug 3, 2023
2 parents fccbb01 + a4fec25 commit b2a8197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/applications/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class AppService {
return 'Hello World!';
}
confirmFormSubmission(formRequest: Request): any {
console.log('testing form submit');

return formRequest;
}
}
12 changes: 4 additions & 8 deletions backend/applications/src/app/services/form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export class FormService {

buildUpdateString = (pathText, newValue) => {
const returnString =
'jsonb_set("form_data"::jsonb,' + pathText + ',' + newValue + ')';
console.log(returnString);
'jsonb_set("form_data"::jsonb,' + pathText + ',' + newValue + ')';
return returnString;
};

Expand All @@ -47,9 +46,7 @@ export class FormService {
formId,
submissionId,
) => {
console.log('partialUpdateObject', partialUpdateObject);
console.log('parentObjectNames', parentObjectNames);


for (const property in partialUpdateObject) {
if (typeof partialUpdateObject[property] === 'object') {
this.processContent(
Expand All @@ -67,14 +64,13 @@ export class FormService {
} else {
objectName = property;
}
console.log('objectName', objectName);
console.log('objectName value', partialUpdateObject[property]);


const pathText = "'{" + objectName + "}'";

const newValue = '\'"' + partialUpdateObject[property] + '"\'';

console.log(pathText, newValue);


await this.formRepository
.createQueryBuilder()
Expand Down

0 comments on commit b2a8197

Please sign in to comment.