Skip to content

Commit 452ae05

Browse files
committed
fix: fix tagging images for cleanup
1 parent b0ceba6 commit 452ae05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,10 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
613613
await columnPlugin.pluginOptions.storageAdapter.markKeyForDeletation(oldRecord[value]);
614614
} catch (e) {
615615
// file might be e.g. already deleted, so we catch error
616-
console.error(`Error setting tag to true for object ${oldRecord[value]}. File will not be auto-cleaned up`, e);
616+
console.error(`Error setting tag to true for object ${oldRecord[value]}. File will not be auto-cleaned up`);
617617
}
618618
}
619-
if (fieldsToUpdate[idx][key] && fieldsToUpdate[idx][key] !== null) {
619+
if (fieldsToUpdate[idx][value] && fieldsToUpdate[idx][value] !== null) {
620620
// remove tag from new file
621621
// in this case we let it crash if it fails: this is a new file which just was uploaded.
622622
await columnPlugin.pluginOptions.storageAdapter.markKeyForNotDeletation(fieldsToUpdate[idx][value]);

0 commit comments

Comments
 (0)