From 045ba04124bb04f052bf865b175554c26634a0f6 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 18 Feb 2022 21:23:48 +0545 Subject: [PATCH] fix resource type --- app/controllers/api/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index c9fa410c1..42a7748fd 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -581,6 +581,7 @@ App::post('/v1/functions/:functionId/deployments') '$read' => ['role:all'], '$write' => ['role:all'], 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'dateCreated' => time(), 'entrypoint' => $entrypoint, 'path' => $path, @@ -610,6 +611,7 @@ App::post('/v1/functions/:functionId/deployments') '$read' => ['role:all'], '$write' => ['role:all'], 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'dateCreated' => time(), 'entrypoint' => $entrypoint, 'path' => $path,