Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jowg-amazon committed Jun 19, 2024
1 parent af217bc commit 8a6a389
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
builder.startObject()
.field(_ID, id)
.field(_VERSION, version);
builder.startObject("tif_config")
builder.startObject("source_config")
.field(SATIFSourceConfigDto.NAME_FIELD, saTifSourceConfigDto.getName())
.field(SATIFSourceConfigDto.FORMAT_FIELD, saTifSourceConfigDto.getFormat())
.field(SATIFSourceConfigDto.TYPE_FIELD, saTifSourceConfigDto.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
.field(_ID, id)
.field(_VERSION, version);

builder.startObject("tif_config")
builder.startObject("source_config")
.field(SATIFSourceConfigDto.FORMAT_FIELD, saTifSourceConfigDto.getFormat())
.field(SATIFSourceConfigDto.NAME_FIELD, saTifSourceConfigDto.getName())
.field(SATIFSourceConfigDto.TYPE_FIELD, saTifSourceConfigDto.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void createIocAndTIFSourceConfig(

// Temp function to download and save IOCs (i.e. refresh)
public void downloadAndSaveIOCs(SATIFSourceConfig saTifSourceConfig, ActionListener<STIX2IOCFetchService.STIX2IOCFetchResponse> actionListener) {
stix2IOCFetchService.fetchIocs(saTifSourceConfig, actionListener);
stix2IOCFetchService.downloadAndIndexIOCs(saTifSourceConfig, actionListener);
}

public void getTIFSourceConfig(
Expand Down

0 comments on commit 8a6a389

Please sign in to comment.