Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix Schema version not being taken into account for validation (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Apr 18, 2023
1 parent e40c37b commit 5768833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/OriginMapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function update(UpdateDeviceOriginMapRequest $request, Device $device)
(new ConfigureDeviceAction)->execute(
device : $device->fresh()->load('node.group', 'originMaps'),
deviceSchema : $deviceSchema->fresh(),
version : $deviceSchema->versions()->whereVersion('1')->sole(),
version : $deviceSchemaVersion,
deviceConfiguration : $validated['configuration'],
deviceConfigurationMetrics: $validated['metrics'],
active : $validated['activate']
Expand Down

0 comments on commit 5768833

Please sign in to comment.