From 1d382cc542b5a618ab06cb2eac243e8a735faad7 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 13 Sep 2022 10:42:42 +0300 Subject: [PATCH] small fix --- app/controllers/api/functions.php | 2 +- src/Appwrite/Event/Audit.php | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index d10ed98f42..388a5cc100 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1246,7 +1246,7 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId') ->desc('Retry Build') ->label('scope', 'functions.write') ->label('event', 'functions.[functionId].deployments.[deploymentId].update') - ->label('audits.event', 'build.create') + ->label('audits.event', 'deployment.update') ->label('audits.resource', 'function/{request.functionId}') ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) ->label('sdk.namespace', 'functions') diff --git a/src/Appwrite/Event/Audit.php b/src/Appwrite/Event/Audit.php index 2020548969..254f7c294a 100644 --- a/src/Appwrite/Event/Audit.php +++ b/src/Appwrite/Event/Audit.php @@ -108,29 +108,6 @@ class Audit extends Event return $this->ip; } - /** - * Set description for this audit event - * - * @param string $event - * @return self - */ - public function setEvent(string $event): self - { - $this->event = $event; - - return $this; - } - - /** - * Returns the audit event description. - * - * @return string - */ - public function getEvent(): string - { - return $this->event; - } - /** * Executes the event and sends it to the audit worker. *