Fix PATCH /api/application/nodes returning 500 due to null timestamps (#2286)

This commit is contained in:
Neil Hanlon
2026-04-20 05:06:01 -04:00
committed by GitHub
parent e01d9f2cf3
commit 98d7158dfc

View File

@@ -40,6 +40,7 @@ class NodeUpdateService
/** @var Node $updated */
$updated = $node->replicate();
$updated->exists = true;
$data = array_merge($data, ['created_at' => $node->created_at, 'updated_at' => now()]);
$updated->forceFill($data)->save();
try {
$node->fqdn = $updated->fqdn;