feat: use new $createdAt and $updatedAt attributes

This commit is contained in:
Torsten Dittmann
2022-06-15 14:46:52 +02:00
parent 74cd77e2f1
commit bbdf70ee90
45 changed files with 282 additions and 270 deletions
+1 -4
View File
@@ -998,9 +998,7 @@ App::post('/v1/projects/:projectId/platforms')
'name' => $name,
'key' => $key,
'store' => $store,
'hostname' => $hostname,
'dateCreated' => \time(),
'dateUpdated' => \time(),
'hostname' => $hostname
]);
$platform = $dbForConsole->createDocument('platforms', $platform);
@@ -1112,7 +1110,6 @@ App::put('/v1/projects/:projectId/platforms/:platformId')
$platform
->setAttribute('name', $name)
->setAttribute('dateUpdated', \time())
->setAttribute('key', $key)
->setAttribute('store', $store)
->setAttribute('hostname', $hostname)