Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/resource/resourceLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
}

Expand Down
Loading