MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cleanupKeychainBackups

Function cleanupKeychainBackups

apps/local/src/db/v1-v2-migration.ts:1316–1322  ·  view source on GitHub ↗
(journal: MigrationJournal)

Source from the content-addressed store, hash-verified

1314};
1315
1316const cleanupKeychainBackups = async (journal: MigrationJournal): Promise<void> => {
1317 const keychain = makeKeychainProvider(keychainBaseServiceName());
1318 for (const backup of journal.keychainBackups ?? []) {
1319 if (!backup.backupId) continue;
1320 await Effect.runPromise(keychain.delete!(backup.backupId as never));
1321 }
1322};
1323
1324const cleanupSecretBackups = async (journal: MigrationJournal): Promise<void> => {
1325 await cleanupKeychainBackups(journal);

Callers 1

cleanupSecretBackupsFunction · 0.85

Calls 2

makeKeychainProviderFunction · 0.85
keychainBaseServiceNameFunction · 0.85

Tested by

no test coverage detected