PR review changes

This commit is contained in:
Matej Bačo committed 2025-03-20 15:44:15 +01:00
1 parent bb01c9e9e9
commit e34fc92c7c
3 files changed
+4 -2

No files matched your search

-2
View File
@@ -623,7 +623,6 @@ return [
'array' => false,
'filters' => ['datetime'],
],
[
'$id' => ID::custom('latestDeploymentStatus'),
'type' => Database::VAR_STRING,
@@ -1125,7 +1124,6 @@ return [
'array' => false,
'filters' => ['datetime'],
],
[
'$id' => ID::custom('latestDeploymentStatus'),
'type' => Database::VAR_STRING,
@@ -99,6 +99,8 @@ class Delete extends Action
if ($function->getAttribute('latestDeploymentId') === $deployment->getId()) {
$latestDeployment = $dbForProject->findOne('deployments', [
Query::equal('resourceType', ['functions']),
Query::equal('resourceInternalId', [$function->getInternalId()]),
Query::orderDesc('$createdAt'),
]);
$function = $dbForProject->updateDocument(
@@ -99,6 +99,8 @@ class Delete extends Action
if ($site->getAttribute('latestDeploymentId') === $deployment->getId()) {
$latestDeployment = $dbForProject->findOne('deployments', [
Query::equal('resourceType', ['sites']),
Query::equal('resourceInternalId', [$site->getInternalId()]),
Query::orderDesc('$createdAt'),
]);
$site = $dbForProject->updateDocument(