From ac719375874fd50fad5a11f8e04ac3329081bd0b Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期五, 08 四月 2022 22:58:44 +0800
Subject: [PATCH] Fix Weekly Report
---
force-app/main/default/triggers/FileAddressTrigger.trigger | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/triggers/FileAddressTrigger.trigger b/force-app/main/default/triggers/FileAddressTrigger.trigger
index c60cda1..a687f6c 100644
--- a/force-app/main/default/triggers/FileAddressTrigger.trigger
+++ b/force-app/main/default/triggers/FileAddressTrigger.trigger
@@ -8,6 +8,8 @@
}
if(!deleteFiles.isEmpty()&&(!System.isFuture()||System.isBatch())){
system.debug('DeleteFiles Value:'+JSON.serialize(deleteFiles));
- AWSServiceTool.deleteFileAddress(deleteFiles);
+ if(!Test.isRunningTest()){
+ AWSServiceTool.deleteFileAddress(deleteFiles);
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.1