From 70e892e627094a8c2864aa08ddc20ae6b1a40e1a Mon Sep 17 00:00:00 2001 From: timea-solid <4144203+timea-solid@users.noreply.github.com> Date: Mon, 9 Nov 2026 10:50:28 +0100 Subject: [PATCH] log what we delete --- src/resource/resourceLogic.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resource/resourceLogic.ts b/src/resource/resourceLogic.ts index 9adfe7f..8b127f4 100644 --- a/src/resource/resourceLogic.ts +++ b/src/resource/resourceLogic.ts @@ -6,6 +6,7 @@ import { readWacAccessInfo } from './resourceMetadata' import { ResourceUploadError, type ResourceAccess, type ResourceAccessWithDelete, type ResourceContent, type ResourceDeleteOptions, type ResourceLogic, type ResourceMetadata, type ResourceMetadataWithDelete, type ResourceUploadResult, type TypeIndexLogic } from '../types' import type { AclLogic } from '../types' import * as mime from 'mime-types' +import * as debug from '../util/debug' export function createResourceLogic(store, aclLogic: AclLogic, containerLogic, typeIndexLogic: TypeIndexLogic): ResourceLogic { function uploadFiles ( @@ -353,6 +354,7 @@ export function createResourceLogic(store, aclLogic: AclLogic, containerLogic, t store.removeDocument(resourceNode) store.fetcher.unload(resourceNode.doc()) + debug.log(`Deleted resource: ${resourceNode.value}`) return deleted }