Skip to content
Snippets Groups Projects
Verified Commit c7af6f9e authored by Damien's avatar Damien
Browse files

FEAT #16063 TIME 0:15 Positions with holes

parent 3fd624c2
No related branches found
No related tags found
No related merge requests found
......@@ -162,15 +162,13 @@ class TileController
}
foreach ($body['tiles'] as $key => $tile) {
if ($key != $tile['position']) {
TileModel::update([
'set' => [
'position' => $key,
],
'where' => ['id = ?'],
'data' => [$tile['id']]
]);
}
TileModel::update([
'set' => [
'position' => $tile['position'],
],
'where' => ['id = ?'],
'data' => [$tile['id']]
]);
}
return $response->withStatus(204);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment