Skip to content

Commit

Permalink
fixed verify language nesting to solve appended data issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAsGrassAP committed Jul 2, 2024
1 parent c56bea6 commit ef531e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/trustedform.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ const response = (vars, req, res) => {
page_url: parsed.insights?.properties?.page_url,
parent_page_url: parsed.insights?.properties?.parent_page_url,

languages: parsed.insights?.properties?.languages,
language_approved: parsed.insights?.properties?.language_approved,
languages: parsed.verify?.languages,
language_approved: parsed.insights?.result?.language_approved,
success: parsed.verify?.result?.success,
}, (v) => { return !isUndefined(v); });
// only include this property if page scan was selected
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@activeprospect/integration-dev-dependencies": "^2.0.0"
"@activeprospect/integration-dev-dependencies": "^2.0.0",
"mocha": "^10.5.2"
}
}

0 comments on commit ef531e9

Please sign in to comment.