From 1819b2f4116a19f7e9eddb126ba12b7df2c617ae Mon Sep 17 00:00:00 2001 From: hydrz Date: Thu, 7 May 2020 16:39:40 +0800 Subject: [PATCH] upsert --- app/Core/AbstractExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Core/AbstractExport.php b/app/Core/AbstractExport.php index 80b2ec92..0a230fe2 100644 --- a/app/Core/AbstractExport.php +++ b/app/Core/AbstractExport.php @@ -67,7 +67,7 @@ abstract class AbstractExport implements WithEvents, ShouldAutoSize 'progress' => 0, ]; - Export::create($data); + Export::upsert($data); app(ExportRepository::class)->forgetCached(); }