review changes

This commit is contained in:
Prateek Banga
2023-11-02 16:43:24 +05:30
parent 76d7369314
commit 270e6e7c15
5 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ class Messaging extends Action
*/
$results = batch(\array_map(function ($providerId) use ($providers, $message, $dbForProject) {
return function () use ($providerId, $providers, $message, $dbForProject) {
$provider = Authorization::skip(fn () => $dbForProject->getDocument('providers', $providerId));
$provider = $dbForProject->getDocument('providers', $providerId);
$identifiers = $providers[$providerId];
$adapter = match ($provider->getAttribute('type')) {
'sms' => $this->sms($provider),