Skip to content

Commit

Permalink
Merge pull request #4609 from activepieces/fix/apollo
Browse files Browse the repository at this point in the history
chore(apollo): bump package json
  • Loading branch information
abuaboud committed May 2, 2024
2 parents e9a4105 + bac2909 commit b33091b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/pieces/community/apollo/package.json
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-apollo",
"version": "0.0.1"
"version": "0.0.2"
}
Expand Up @@ -29,7 +29,8 @@ export const enrichCompany = createAction({
'Content-Type': 'application/json',
},
});
await store.put(`_apollo_org_${propsValue.domain}`, result.body.organization);
return result.body.organization;
const resultOrg = result.body.organization || {};
await store.put(`_apollo_org_${propsValue.domain}`, resultOrg);
return resultOrg;
},
});
Expand Up @@ -30,7 +30,8 @@ export const matchPerson = createAction({
email: propsValue.email,
}
});
await store.put(`_apollo_person_${propsValue.email}`, result.body.person);
return result.body.person;
const personResult = result.body.person || {};
await store.put(`_apollo_person_${propsValue.email}`, personResult);
return personResult;
},
});

0 comments on commit b33091b

Please sign in to comment.