Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exteand deletes worker #8274

Open
wants to merge 16 commits into
base: 1.5.x
Choose a base branch
from
Prev Previous commit
Next Next commit
adding const for compatibility
  • Loading branch information
shimonewman committed Jun 9, 2024
commit 2bd5ac64fed3430040bf44442cf42cbd5260ffd2
6 changes: 3 additions & 3 deletions src/Appwrite/Platform/Workers/Deletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function action(Message $message, Database $dbForConsole, callable $getPr
$this->deleteDeployment($getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project);
break;
case DELETE_TYPE_USERS:
$this->deleteUser($getProjectDB, $document, $project, $dbForConsole = null);
$this->deleteUser($getProjectDB, $document, $project, $dbForConsole);
break;
case DELETE_TYPE_TEAMS:
$this->deleteMemberships($getProjectDB, $document, $project);
Expand Down Expand Up @@ -574,9 +574,9 @@ protected function deleteProject(Database $dbForConsole, callable $getProjectDB
* @return void
* @throws Exception
*/
protected function deleteUser(callable $getProjectDB, Document $document, Document $project): void
protected function deleteUser(callable $getProjectDB, Document $document, Document $project, Database $dbForConsole): void
{
var_dump("in appwrite");

$userId = $document->getId();
$userInternalId = $document->getInternalId();
$dbForProject = $getProjectDB($project);
Expand Down