Skip to content

Commit f20408d

Browse files
authored
Merge pull request #42 from fleetbase/dev-v0.1.23
v0.1.23; hotfix: vehicle cost values must be string
2 parents e0b7ef4 + 1611620 commit f20408d

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create Release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
create:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Publish GitHub Release
13+
uses: softprops/action-gh-release@v2
14+
with:
15+
tag_name: ${{ github.ref_name }}
16+
name: ${{ github.ref_name }}
17+
generate_release_notes: true
18+
draft: false
19+
prerelease: false
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

addon/models/vehicle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class VehicleModel extends Model {
8383
@attr('string') financing_status;
8484
@attr('number') loan_number_of_payments;
8585
@attr('date') loan_first_payment;
86-
@attr('number') loan_amount;
86+
@attr('string') loan_amount;
8787
@attr('string') estimated_service_life_distance_unit;
8888
@attr('number') estimated_service_life_distance;
8989
@attr('number') estimated_service_life_months;
@@ -127,10 +127,10 @@ export default class VehicleModel extends Model {
127127

128128
/** Financial values */
129129
@attr('string') currency;
130-
@attr('number') insurance_value;
131-
@attr('number') depreciation_rate;
132-
@attr('number') current_value;
133-
@attr('number') acquisition_cost;
130+
@attr('string') insurance_value;
131+
@attr('string') depreciation_rate;
132+
@attr('string') current_value;
133+
@attr('string') acquisition_cost;
134134

135135
/** Misc text / meta */
136136
@attr('string') notes;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fleetbase/fleetops-data",
3-
"version": "0.1.22",
3+
"version": "0.1.23",
44
"description": "Fleetbase Fleet-Ops based models, serializers, transforms, adapters and GeoJson utility functions.",
55
"keywords": [
66
"fleetbase-data",

0 commit comments

Comments
 (0)