mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Fix sites 5xx error
This commit is contained in:
parent
480c7eac21
commit
7239b9d7cc
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Sites\Http\Deployments;
|
namespace Appwrite\Platform\Modules\Sites\Http\Deployments;
|
||||||
|
|
||||||
|
use Appwrite\Event\Delete as DeleteEvent;
|
||||||
use Appwrite\Event\Event;
|
use Appwrite\Event\Event;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -62,7 +63,7 @@ class Delete extends Action
|
||||||
->callback([$this, 'action']);
|
->callback([$this, 'action']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function action(string $siteId, string $deploymentId, Response $response, Database $dbForProject, Delete $queueForDeletes, Event $queueForEvents, Device $deviceForSites, Device $deviceForFunctions)
|
public function action(string $siteId, string $deploymentId, Response $response, Database $dbForProject, DeleteEvent $queueForDeletes, Event $queueForEvents, Device $deviceForSites, Device $deviceForFunctions)
|
||||||
{
|
{
|
||||||
$site = $dbForProject->getDocument('sites', $siteId);
|
$site = $dbForProject->getDocument('sites', $siteId);
|
||||||
if ($site->isEmpty()) {
|
if ($site->isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue