Skip to content

Commit 959a54a

Browse files
committed
Build
1 parent 5de81c9 commit 959a54a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,9 @@ class Vehicle {
688688
vehicle.id = data.id || "";
689689
vehicle.type = data.type || "vehicles";
690690
vehicle.relationships = data.relationships || {};
691-
vehicle.attributes.registration = vehicle.relationships.author?.data?.id || "";
692-
vehicle.attributes.vin = vehicle.relationships.form?.data?.id || "";
693-
vehicle.attributes.description = vehicle.relationships.form_version?.data?.id || "";
691+
vehicle.attributes.registration = data.attributes.registration || "";
692+
vehicle.attributes.vin = data.attributes.vin || "";
693+
vehicle.attributes.description = data.attributes.description || "";
694694
vehicle.meta = data.meta || {};
695695
vehicle.links = data.links || {};
696696
}

dist/models/Vehicle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export class Vehicle {
1818
vehicle.id = data.id || '';
1919
vehicle.type = data.type || 'vehicles';
2020
vehicle.relationships = data.relationships || {};
21-
vehicle.attributes.registration = vehicle.relationships.author?.data?.id || '';
22-
vehicle.attributes.vin = vehicle.relationships.form?.data?.id || '';
23-
vehicle.attributes.description = vehicle.relationships.form_version?.data?.id || '';
21+
vehicle.attributes.registration = data.attributes.registration || '';
22+
vehicle.attributes.vin = data.attributes.vin || '';
23+
vehicle.attributes.description = data.attributes.description || '';
2424
vehicle.meta = data.meta || {};
2525
vehicle.links = data.links || {};
2626
}

0 commit comments

Comments
 (0)