mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
projectId schedules
This commit is contained in:
@@ -480,6 +480,7 @@ class Deletes extends Action
|
||||
private function deleteProject(Database $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, Document $document): void
|
||||
{
|
||||
$projectInternalId = $document->getInternalId();
|
||||
$projectId = $document->getId();
|
||||
|
||||
try {
|
||||
$dsn = new DSN($document->getAttribute('database', 'console'));
|
||||
@@ -557,9 +558,9 @@ class Deletes extends Action
|
||||
Query::equal('projectInternalId', [$projectInternalId]),
|
||||
], $dbForConsole);
|
||||
|
||||
// Delete Schedules
|
||||
// Delete Schedules (No projectInternalId in this collection)
|
||||
$this->deleteByGroup('schedules', [
|
||||
Query::equal('projectInternalId', [$projectInternalId]),
|
||||
Query::equal('projectId', [$projectId]),
|
||||
], $dbForConsole);
|
||||
|
||||
// Delete metadata table
|
||||
|
||||
Reference in New Issue
Block a user