Persist keys to db. Necessary in the event that download succeeds then decrypt fails.
This commit is contained in:
parent
0306c958d1
commit
9416f4e040
2 changed files with 10 additions and 0 deletions
|
|
@ -119,5 +119,13 @@ namespace ApplicationServices
|
|||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
// I hate how unintuitive this is to use/remember. Will hopefully be cleaned up in a future comprehensive data strategy overhaul
|
||||
public static void UpdateBook(Book book)
|
||||
{
|
||||
using var context = DbContexts.GetContext();
|
||||
context.Update(book);
|
||||
context.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue