Add a job to backfill attachment uploads to the archive service.

This commit is contained in:
Greyson Parrelli
2024-04-18 11:23:58 -04:00
parent 1e4d96b7c4
commit a82b9ee25f
17 changed files with 567 additions and 113 deletions

View File

@@ -346,6 +346,10 @@ object BackupRepository {
return api
.triggerBackupIdReservation(backupKey)
.then { getAuthCredential() }
.then { credential ->
api.setPublicKey(backupKey, credential)
.map { credential }
}
.then { credential ->
val mediaName = attachment.getMediaName()
val request = attachment.toArchiveMediaRequest(mediaName, backupKey)