1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Fix datetime attribute default

This commit is contained in:
Matej Bačo 2022-09-06 09:07:39 +00:00
parent d5d5c95507
commit 39434c3fec

View file

@ -1288,7 +1288,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/dateti
->inject('dbForProject')
->inject('database')
->inject('events')
->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?bool $default, bool $array, Response $response, Database $dbForProject, EventDatabase $database, Event $events) {
->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $database, Event $events) {
$attribute = createAttribute($databaseId, $collectionId, new Document([
'key' => $key,