- performance optimizations for "/api/signature/save" endpoint

- upgraded "jQuery" JS lib `v3.1.1` -> `v3.3.1`
This commit is contained in:
Mark Friedrich
2018-07-07 12:09:08 +02:00
parent 5e21857d67
commit f9d7b00672
17 changed files with 38 additions and 117 deletions

View File

@@ -774,7 +774,7 @@ class Map extends Controller\AccessController {
// check if the current connection belongs to the current map
$map->filter('connections', ['id = ?', $connectionData['id'] ]);
$filteredMap = $map->find(
['id = ?', $map->id ],
['id = ?', $map->_id ],
['limit' => 1]
);
@@ -789,7 +789,7 @@ class Map extends Controller\AccessController {
* @var $connection Model\ConnectionModel
*/
$connection = $filteredMap->connections->current();
$connection->setData($connectionData);
$connection->copyfrom($connectionData, ['scope', 'type']);
if($connection->save($activeCharacter)){
$mapChanged = true;