1
0
Fork 0
mirror of synced 2024-06-18 18:54:55 +12:00

feat: remove unused injection

This commit is contained in:
Christy Jacob 2022-01-28 05:30:24 +04:00
parent 8e10d5cad9
commit 6e44812d99

View file

@ -422,12 +422,10 @@ App::delete('/v1/functions/:functionId')
->inject('response')
->inject('dbForProject')
->inject('deletes')
->inject('project')
->action(function ($functionId, $response, $dbForProject, $deletes, $project) {
->action(function ($functionId, $response, $dbForProject, $deletes) {
/** @var Appwrite\Utopia\Response $response */
/** @var Utopia\Database\Database $dbForProject */
/** @var Appwrite\Event\Event $deletes */
/** @var Utopia\Database\Document $project */
$function = $dbForProject->getDocument('functions', $functionId);
@ -690,7 +688,7 @@ App::delete('/v1/functions/:functionId/deployments/:deploymentId')
/** @var Appwrite\Utopia\Response $response */
/** @var Utopia\Database\Database $dbForProject */
/** @var Appwrite\Event\Event $usage */
/** @var Utopia\Database\Document $project */
/** @var Appwrite\Event\Event $deletes */
$function = $dbForProject->getDocument('functions', $functionId);
if ($function->isEmpty()) {