1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

fix tests

This commit is contained in:
Everly Precia Suresh 2022-05-13 12:27:12 +00:00
parent 3e41a3a5f9
commit 1f139d9337

View file

@ -294,7 +294,7 @@ App::put('/v1/functions/:functionId')
->inject('dbForProject')
->inject('project')
->inject('user')
->action(function (string $functionId, string $name, array $execute, array $vars, array $events, string $schedule, int $timeout, Response $response, Database $dbForProject, Document $project, User $user) {
->action(function (string $functionId, string $name, array $execute, $vars, array $events, string $schedule, int $timeout, Response $response, Database $dbForProject, Document $project, User $user) {
$function = $dbForProject->getDocument('functions', $functionId);
@ -453,7 +453,7 @@ App::post('/v1/functions/:functionId/deployments')
->inject('project')
->inject('deviceFunctions')
->inject('deviceLocal')
->action(function (string $functionId, string $entrypoint, string $file, bool $activate, Request $request, Response $response, Database $dbForProject, Event $usage, $user, Document $project, Device $deviceFunctions, Device $deviceLocal) {
->action(function (string $functionId, string $entrypoint, array $file, bool $activate, Request $request, Response $response, Database $dbForProject, Event $usage, $user, Document $project, Device $deviceFunctions, Device $deviceLocal) {
$function = $dbForProject->getDocument('functions', $functionId);