From c0b48ec247fa1208e39da14bee982f96e2690f3c Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 26 Jul 2021 19:11:25 -0400 Subject: [PATCH] Remove references to old db responses --- app/controllers/api/database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 033bdeef10..db6a98a5a6 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -308,7 +308,7 @@ App::post('/v1/database/collections/:collectionId/attributes/string') ; $response->setStatusCode(Response::STATUS_CODE_CREATED); - $response->dynamic2($attribute, Response::MODEL_ATTRIBUTE); + $response->dynamic($attribute, Response::MODEL_ATTRIBUTE); }); App::post('/v1/database/collections/:collectionId/attributes/integer') @@ -342,6 +342,7 @@ App::post('/v1/database/collections/:collectionId/attributes/integer') $type = Database::VAR_INTEGER; + $collection = $dbForExternal->getCollection($collectionId); if ($collection->isEmpty()) { @@ -395,7 +396,7 @@ App::post('/v1/database/collections/:collectionId/attributes/integer') ; $response->setStatusCode(Response::STATUS_CODE_CREATED); - $response->dynamic2($attribute, Response::MODEL_ATTRIBUTE); + $response->dynamic($attribute, Response::MODEL_ATTRIBUTE); }); App::post('/v1/database/collections/:collectionId/attributes/float') @@ -482,7 +483,7 @@ App::post('/v1/database/collections/:collectionId/attributes/float') ; $response->setStatusCode(Response::STATUS_CODE_CREATED); - $response->dynamic2($attribute, Response::MODEL_ATTRIBUTE); + $response->dynamic($attribute, Response::MODEL_ATTRIBUTE); }); App::post('/v1/database/collections/:collectionId/attributes/boolean')