Skip to content

Commit

Permalink
[riskiq] Fix the connector
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Mar 25, 2024
1 parent 3714f99 commit bd92244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external-import/riskiq/src/riskiq/article_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ def run(self, work_id: str, state: Mapping[str, Any]) -> Mapping[str, Any]:
bundle = self.helper.stix2_create_bundle(bundle_objects)
self.helper.log_info("[RiskIQ] Sending report STIX2 bundle")
self._send_bundle(bundle)
self.helper.metric.inc("record_send", len(bundle_objects))
return self._create_state(created)

@classmethod
Expand All @@ -788,4 +789,3 @@ def _create_state(

def _send_bundle(self, bundle: str) -> None:
self.helper.send_stix2_bundle(bundle, work_id=self.work_id)
self.helper.metric.inc("record_send", len(bundle.objects))

0 comments on commit bd92244

Please sign in to comment.