mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
file_exists check
This commit is contained in:
@@ -128,6 +128,7 @@ Server::setResource('execute', function () {
|
||||
|
||||
// Save all changes we made to certificate document into database
|
||||
saveCertificateDocument($domain->get(), $certificate, $dbForConsole);
|
||||
|
||||
$filename = APP_STORAGE_CERTIFICATES . '/' . $domain . '.tar.gz';
|
||||
if (file_exists($filename)) {
|
||||
$queueForEdgeSyncOut->enqueue([
|
||||
|
||||
@@ -42,7 +42,7 @@ class Maintenance extends Action
|
||||
|
||||
function notifyDeleteExecutionLogs(int $interval, Delete $queueForDeletes): void
|
||||
{
|
||||
$queueForDeletes
|
||||
($queueForDeletes)
|
||||
->setType(DELETE_TYPE_EXECUTIONS)
|
||||
->setDatetime(DateTime::addSeconds(new \DateTime(), -1 * $interval))
|
||||
->trigger();
|
||||
|
||||
Reference in New Issue
Block a user