Skip to content

Commit eb2aed5

Browse files
authored
Merge branch 'main' into feat/waypoint-pod-notes-columns
2 parents 7c2edad + 6063ad2 commit eb2aed5

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

addon/serializers/maintenance-schedule.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export default class MaintenanceScheduleSerializer extends ApplicationSerializer
5757
// Strip abstract subtype prefixes so the server receives the bare model type
5858
// e.g. 'facilitator-vendor' -> 'vendor', 'maintenance-subject-vehicle' -> 'vehicle'
5959
if (typeof type === 'string') {
60-
type = type.replace(/^facilitator-/, '').replace(/^maintenance-subject-/, '').replace(/^customer-/, '');
60+
type = type
61+
.replace(/^facilitator-/, '')
62+
.replace(/^maintenance-subject-/, '')
63+
.replace(/^customer-/, '');
6164
}
6265
json[key + '_type'] = `fleet-ops:${type}`;
6366
}

addon/serializers/maintenance.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export default class MaintenanceSerializer extends ApplicationSerializer.extend(
5959
// Strip abstract subtype prefixes so the server receives the bare model type
6060
// e.g. 'facilitator-vendor' -> 'vendor', 'maintenance-subject-vehicle' -> 'vehicle'
6161
if (typeof type === 'string') {
62-
type = type.replace(/^facilitator-/, '').replace(/^maintenance-subject-/, '').replace(/^customer-/, '');
62+
type = type
63+
.replace(/^facilitator-/, '')
64+
.replace(/^maintenance-subject-/, '')
65+
.replace(/^customer-/, '');
6366
}
6467
json[key + '_type'] = `fleet-ops:${type}`;
6568
}

addon/serializers/order.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export default class OrderSerializer extends ApplicationSerializer.extend(Embedd
9191
// Strip abstract subtype prefixes so the server receives the bare model type
9292
// e.g. 'facilitator-vendor' -> 'vendor', 'customer-contact' -> 'contact'
9393
if (typeof type === 'string') {
94-
type = type.replace(/^facilitator-/, '').replace(/^customer-/, '').replace(/^maintenance-subject-/, '');
94+
type = type
95+
.replace(/^facilitator-/, '')
96+
.replace(/^customer-/, '')
97+
.replace(/^maintenance-subject-/, '');
9598
}
9699
json[key + '_type'] = `fleet-ops:${type}`;
97100
}

addon/serializers/work-order.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export default class WorkOrderSerializer extends ApplicationSerializer.extend(Em
5858
// Strip abstract subtype prefixes so the server receives the bare model type
5959
// e.g. 'facilitator-vendor' -> 'vendor', 'maintenance-subject-vehicle' -> 'vehicle'
6060
if (typeof type === 'string') {
61-
type = type.replace(/^facilitator-/, '').replace(/^maintenance-subject-/, '').replace(/^customer-/, '');
61+
type = type
62+
.replace(/^facilitator-/, '')
63+
.replace(/^maintenance-subject-/, '')
64+
.replace(/^customer-/, '');
6265
}
6366
json[key + '_type'] = `fleet-ops:${type}`;
6467
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
3737
},
3838
"dependencies": {
39-
"@fleetbase/ember-core": "^0.3.9",
4039
"@babel/core": "^7.23.2",
40+
"@fleetbase/ember-core": "^0.3.18",
4141
"date-fns": "^2.29.3",
4242
"ember-cli-babel": "^8.2.0",
4343
"ember-cli-htmlbars": "^6.3.0"

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)