Skip to content

Commit

Permalink
fix namespaces iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Dec 13, 2023
1 parent dd58aea commit 6b6ae3f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/mapeo-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,16 @@ export class MapeoProject extends TypedEmitter {
// clear data from cores
// TODO: only clear synced data
const namespacePromises = []
for (const namespace of /** @type {import('./core-manager/core-index.js').Namespace[]} */ ([
'config',
'data',
'blobs',
'blobIndex',
])) {

const namespacesWithoutAuth =
/** @satisfies {Exclude<import('./core-manager/index.js').Namespace, 'auth'>[]} */ ([
'config',
'data',
'blob',
'blobIndex',
])

for (const namespace of namespacesWithoutAuth) {
const deletionPromises = []
const coreRecords = this.#coreManager.getCores(namespace)

Expand Down

0 comments on commit 6b6ae3f

Please sign in to comment.