fix: review comments
This commit is contained in:
parent
5689353994
commit
1cfc6a8a2d
|
@ -598,7 +598,7 @@ App::post('/v1/projects/:projectId/webhooks')
|
||||||
throw new Exception('Project not found', 404);
|
throw new Exception('Project not found', 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
$security = ($security === '1' || $security === 'true' || $security === 1 || $security === true);
|
$security = (bool) filter_var($security, FILTER_VALIDATE_BOOLEAN);
|
||||||
|
|
||||||
$webhook = new Document([
|
$webhook = new Document([
|
||||||
'$id' => $dbForConsole->getId(),
|
'$id' => $dbForConsole->getId(),
|
||||||
|
|
Loading…
Reference in a new issue