Use new AudibleApi methods
This commit is contained in:
parent
1149c10cf1
commit
defabf7356
2 changed files with 3 additions and 23 deletions
|
|
@ -213,12 +213,13 @@ namespace ApplicationServices
|
|||
if (archiver is not null)
|
||||
{
|
||||
var fileName = $"{DateTime.Now:u} {account.MaskedLogEntry}.json";
|
||||
var items = await Task.Run(() => JArray.FromObject(dtoItems.Select(i => i.SourceJson)));
|
||||
|
||||
var scanFile = new JObject
|
||||
{
|
||||
{ "Account", account.MaskedLogEntry },
|
||||
{ "ScannedDateTime", DateTime.Now.ToString("u") },
|
||||
{ "Items", await Task.Run(() => JArray.FromObject(dtoItems.Select(i => i.SourceJson))) }
|
||||
{ "Items", items}
|
||||
};
|
||||
|
||||
await archiver.AddFileAsync(fileName, scanFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue