Perform backup deletion in a durable job.

This commit is contained in:
Alex Hart
2025-05-28 13:07:09 -03:00
committed by GitHub
parent 8900721064
commit 6a40f4a4f4
17 changed files with 603 additions and 91 deletions

View File

@@ -181,7 +181,7 @@ class ArchiveApi(
* - 403: Forbidden. The request had insufficient permissions to perform the requested action.
* - 429: Rate limited.
*/
fun refreshBackup(aci: ACI, archiveServiceAccess: ArchiveServiceAccess<MessageBackupKey>): NetworkResult<Unit> {
fun refreshBackup(aci: ACI, archiveServiceAccess: ArchiveServiceAccess<*>): NetworkResult<Unit> {
return getCredentialPresentation(aci, archiveServiceAccess)
.map { it.toArchiveCredentialPresentation().toHeaders() }
.then { headers ->
@@ -203,7 +203,7 @@ class ArchiveApi(
* - 429: Rate limited.
*
*/
fun deleteBackup(aci: ACI, archiveServiceAccess: ArchiveServiceAccess<MessageBackupKey>): NetworkResult<Unit> {
fun deleteBackup(aci: ACI, archiveServiceAccess: ArchiveServiceAccess<*>): NetworkResult<Unit> {
return getCredentialPresentation(aci, archiveServiceAccess)
.map { it.toArchiveCredentialPresentation().toHeaders() }
.then { headers ->