Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CNCF-Bot committed Jul 10, 2023
1 parent 97e8e88 commit 0b41bc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/crunchbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ const fetchCrunchbaseOrganization = async id => {
const fetchData = module.exports.fetchData = async function(name) {
const result = await fetchCrunchbaseOrganization(name)
const mapAcquisitions = function(a) {
let result1;
try {
const result = {
result1 = {
date: a.announced_on.value,
acquiree: a.acquiree_identifier.value,
}
Expand All @@ -150,7 +151,7 @@ const fetchData = module.exports.fetchData = async function(name) {
} catch(ex) {
return null;
}
return result;
return result1;
}
let acquisitions = result.cards.acquiree_acquisitions.map(mapAcquisitions).filter( (x) => !!x);
const limit = 100;
Expand Down

0 comments on commit 0b41bc5

Please sign in to comment.