1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

small fix

This commit is contained in:
shimon 2022-09-13 10:42:42 +03:00
parent b86f7689ec
commit 1d382cc542
2 changed files with 1 additions and 24 deletions

View file

@ -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')

View file

@ -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.
*