Skip to content

Commit 310568d

Browse files
committed
Fix insert one operation
1 parent 84c2023 commit 310568d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @var string
2222
*/
23-
define('MPG_APP_VERSION', '0.9.5');
23+
define('MPG_APP_VERSION', '0.9.6');
2424

2525
/**
2626
* Development mode?

src/Controllers/CollectionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function enumFieldsAction($databaseName, $collectionName) : Response {
195195
$documents = $collection->find([], ['limit' => 1])->toArray();
196196

197197
if ( empty($documents) ) {
198-
return new Response(404, 'Collection is empty');
198+
return new Response(200, json_encode([]), ['Content-Type' => 'application/json']);
199199
}
200200

201201
$documentFields = MongoDBHelper::arrayKeysMulti(

0 commit comments

Comments
 (0)