Przeglądaj źródła

return correct object

CauseFX 4 lat temu
rodzic
commit
0efe381349
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/functions/demo-functions.php

+ 1 - 1
api/functions/demo-functions.php

@@ -16,7 +16,7 @@ trait DemoFunctions
 			$data = $this->userDefinedIdReplacementLink($data, ['plugins/images/cache/' => 'api/demo_data/' . $path . 'images/']);
 			$data = json_decode($data, true);
 			$this->setResponse(200, 'Demo data for file: ' . $file, $data['response']['data']);
-			return $data;
+			return $data['response']['data'];
 		} else {
 			$this->setResponse(404, 'Demo data was not found for file: ' . $file);
 			return false;