1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix: review comments

This commit is contained in:
Christy Jacob 2022-02-21 15:11:48 +04:00
parent 5689353994
commit 1cfc6a8a2d

View file

@ -598,7 +598,7 @@ App::post('/v1/projects/:projectId/webhooks')
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([
'$id' => $dbForConsole->getId(),