From b54f1c796595671bd753a9161eccad074d444273 Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期三, 16 三月 2022 17:45:36 +0800
Subject: [PATCH] 询价失单预留产品无效
---
force-app/main/default/triggers/FileAddressTrigger.trigger | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/triggers/FileAddressTrigger.trigger b/force-app/main/default/triggers/FileAddressTrigger.trigger
index 861b577..c60cda1 100644
--- a/force-app/main/default/triggers/FileAddressTrigger.trigger
+++ b/force-app/main/default/triggers/FileAddressTrigger.trigger
@@ -6,7 +6,7 @@
deleteFiles.add(fd.AWS_File_Key__c);
}
}
- if(!deleteFiles.isEmpty()){
+ if(!deleteFiles.isEmpty()&&(!System.isFuture()||System.isBatch())){
system.debug('DeleteFiles Value:'+JSON.serialize(deleteFiles));
AWSServiceTool.deleteFileAddress(deleteFiles);
}
--
Gitblit v1.9.1