Correct usage

This commit is contained in:
Brage Skjønborg 2026-01-31 13:35:16 +01:00
parent 15f8c4c076
commit 6dab106f2a
2 changed files with 2 additions and 3 deletions

View File

@ -66,7 +66,7 @@ class MigrateCreateStoreTaskListener(
).derivedOf(event)
if (!collectProjection.isStorePermitted()) {
if (!CollectProjection(history).isStorePermitted()) {
log.info { "\uD83D\uDED1 Not storing content and metadata automatically for collection: $collection @ ${useEvent.referenceId}" }
log.info { "A manual allow completion event is required to proceed." }
return null

View File

@ -50,8 +50,7 @@ class StoreContentAndMetadataListener: EventListener() {
return null
}
val collectProjection = CollectProjection(useHistory)
if (!collectProjection.isStorePermitted()) {
if (!CollectProjection(history).isStorePermitted()) {
log.info { "\uD83D\uDED1 Not storing content and metadata automatically for collection: $collection @ ${useEvent.referenceId}" }
log.info { "A manual allow completion event is required to proceed." }
return null