Skip to content

Commit

Permalink
Added finalisation to the downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Anderson committed Jan 3, 2025
1 parent 2c10d51 commit 430278c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Btms.Business/Commands/DownloadNotificationsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public async Task Handle(DownloadCommand request, CancellationToken cancellation
await Download(request, rootFolder, "RAW/GVMSAPIRESPONSE", typeof(SearchGmrsForDeclarationIdsResponse), cancellationToken);

await Download(request, rootFolder, "RAW/DECISIONS", typeof(AlvsClearanceRequest), cancellationToken);


await Download(request, rootFolder, "RAW/FINALISATION", typeof(AlvsClearanceRequest), cancellationToken);

ZipFile.CreateFromDirectory(rootFolder, $"{env.ContentRootPath}\\{request.JobId}.zip");

Directory.Delete(rootFolder, true);
Expand Down
5 changes: 5 additions & 0 deletions Btms.SensitiveData/SensitiveDataSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public string RedactRawJson(string json, Type type)
}
var sensitiveFields = SensitiveFieldsProvider.Get(type);

if (!sensitiveFields.Any())
{
return json;
}

var rootNode = JsonNode.Parse(json);

foreach (var sensitiveField in sensitiveFields)
Expand Down

0 comments on commit 430278c

Please sign in to comment.