diff --git a/app/Jobs/MailError.php b/app/Jobs/MailError.php index b6f3c62416..42ad889244 100644 --- a/app/Jobs/MailError.php +++ b/app/Jobs/MailError.php @@ -127,6 +127,7 @@ class MailError extends Job implements ShouldQueue if (!file_exists($file)) { Log::debug(sprintf('Wrote new file in "%s"', $file)); + try { file_put_contents($file, json_encode($limits, JSON_PRETTY_PRINT)); } catch (FilesystemException $e) { @@ -137,6 +138,7 @@ class MailError extends Job implements ShouldQueue } if (file_exists($file)) { Log::debug(sprintf('Read file in "%s"', $file)); + try { $limits = json_decode(file_get_contents($file), true); } catch (FilesystemException $e) { @@ -171,6 +173,7 @@ class MailError extends Job implements ShouldQueue } ++$limits[$type]['sent']; } + try { file_put_contents($file, json_encode($limits, JSON_PRETTY_PRINT)); } catch (FilesystemException $e) { diff --git a/config/firefly.php b/config/firefly.php index f6cb1d02cf..c272582ab9 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -79,7 +79,7 @@ return [ // see cer.php for exchange rates feature flag. ], 'version' => 'develop/2025-10-26', - 'build_time' => 1761467848, + 'build_time' => 1761469088, 'api_version' => '2.1.0', // field is no longer used. 'db_version' => 28, // field is no longer used.