From 32b8a1edfebfc46ec9d26c33914bd6d6d9c9d394 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 9 Jan 2023 08:44:02 +0000 Subject: [PATCH] fix param order in action --- app/controllers/api/teams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 00be7ac896..37ff807d4c 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -320,7 +320,7 @@ App::post('/v1/teams/:teamId/memberships') ->inject('mails') ->inject('messaging') ->inject('events') - ->action(function (string $teamId, string $userId, string $email, string $phone, array $roles, string $url, string $name, Response $response, Document $project, Document $user, Database $dbForProject, Locale $locale, Mail $mails, EventPhone $messaging, Event $events) { + ->action(function (string $teamId, string $email, string $userId, string $phone, array $roles, string $url, string $name, Response $response, Document $project, Document $user, Database $dbForProject, Locale $locale, Mail $mails, EventPhone $messaging, Event $events) { if (empty($userId) && empty($email) && empty($phone)) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'At least one of userId, email, or phone is required');