Skip to content

Commit

Permalink
Merge pull request #188 from aodn/bug/6324-sse-not-send-on-progress
Browse files Browse the repository at this point in the history
Bug fix on produce type
  • Loading branch information
utas-raymondng authored Feb 6, 2025
2 parents a1f01a8 + 79000d4 commit a80b351
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public SseEmitter indexAllMetadataRecordsAsync(
return emitter;
}

@PostMapping(path="/async/all-cloud", produces = "application/json")
@Operation(security = {@SecurityRequirement(name = "X-API-Key") }, description = "Index a dataset by UUID")
@PostMapping(path="/async/all-cloud")
@Operation(security = { @SecurityRequirement(name = "X-API-Key") }, description = "Index a dataset by UUID")
public SseEmitter indexAllCOData() {
final SseEmitter emitter = new SseEmitter(0L); // 0L means no timeout;
final IndexService.Callback callback = createCallback(emitter);
Expand Down Expand Up @@ -163,8 +163,8 @@ public ResponseEntity<String> deleteDocumentByUUID(@PathVariable("uuid") String
return indexerMetadata.deleteDocumentByUUID(uuid);
}

@PostMapping(path="/{uuid}/cloud", produces = "application/json")
@Operation(security = {@SecurityRequirement(name = "X-API-Key") }, description = "Index a dataset by UUID")
@PostMapping(path="/{uuid}/cloud")
@Operation(security = { @SecurityRequirement(name = "X-API-Key") }, description = "Index a dataset by UUID")
public SseEmitter indexCODataByUUID(@PathVariable("uuid") String uuid) {
return indexCODataByUUID(uuid, null);
}
Expand Down

0 comments on commit a80b351

Please sign in to comment.