mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Fix PATCH /api/application/nodes returning 500 due to null timestamps (#2286)
This commit is contained in:
@@ -40,6 +40,7 @@ class NodeUpdateService
|
|||||||
/** @var Node $updated */
|
/** @var Node $updated */
|
||||||
$updated = $node->replicate();
|
$updated = $node->replicate();
|
||||||
$updated->exists = true;
|
$updated->exists = true;
|
||||||
|
$data = array_merge($data, ['created_at' => $node->created_at, 'updated_at' => now()]);
|
||||||
$updated->forceFill($data)->save();
|
$updated->forceFill($data)->save();
|
||||||
try {
|
try {
|
||||||
$node->fqdn = $updated->fqdn;
|
$node->fqdn = $updated->fqdn;
|
||||||
|
|||||||
Reference in New Issue
Block a user