fix: clean up manager logic
Some checks failed
Build Test / test (pull_request) Successful in 30s
JS Unit Tests / test (pull_request) Failing after 29s
PHP Unit Tests / test (pull_request) Successful in 50s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-05-15 19:06:06 -04:00
parent 493dd1c015
commit 72c2972777
3 changed files with 222 additions and 148 deletions

View File

@@ -316,8 +316,8 @@ class DefaultController extends ControllerAbstract {
$userId,
$data['provider'],
$data['identifier'],
$data['data'],
$data['delta'] ?? false,
$data['data']
);
}
@@ -515,7 +515,7 @@ class DefaultController extends ControllerAbstract {
$userId,
$data['provider'],
$data['service'],
$targetIdentifier->collection() ?? null,
$targetIdentifier ?? null,
$data['properties']
);
}
@@ -807,7 +807,7 @@ class DefaultController extends ControllerAbstract {
}
}
return $this->mailManager->entityDelete($tenantId, $userId, $sources);
return $this->mailManager->entityDelete($tenantId, $userId, ...$sources->all());
}
private function entityPatch(string $tenantId, string $userId, array $data): mixed {
@@ -860,7 +860,7 @@ class DefaultController extends ControllerAbstract {
}
}
return $this->mailManager->entityMove($tenantId, $userId, $target, $sources);
return $this->mailManager->entityMove($tenantId, $userId, $target, ...$sources->all());
}
private function entityTransmit(string $tenantId, string $userId, array $data): mixed {