From 6b6ae3faed005fdd4e2530b173b37c98d97ad1a8 Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Tue, 12 Dec 2023 15:23:36 -0500 Subject: [PATCH] fix namespaces iteration --- src/mapeo-project.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/mapeo-project.js b/src/mapeo-project.js index 4f9edbb00..dea4a3d72 100644 --- a/src/mapeo-project.js +++ b/src/mapeo-project.js @@ -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[]} */ ([ + 'config', + 'data', + 'blob', + 'blobIndex', + ]) + + for (const namespace of namespacesWithoutAuth) { const deletionPromises = [] const coreRecords = this.#coreManager.getCores(namespace)