@bluedot-innovation/models 2.0.12-alpha.1 → 2.0.12-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/models/BearingFilter.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/models/BearingFilter.js
CHANGED
|
@@ -19,10 +19,14 @@ BearingFilterSchema.add({
|
|
|
19
19
|
function validateAngles (toAngle, magicCallback) {
|
|
20
20
|
let fromAngle = this.fromAngle
|
|
21
21
|
|
|
22
|
-
if (
|
|
22
|
+
if (toAngle === undefined) {
|
|
23
23
|
return magicCallback(false, 'toAngle is required')
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
if (fromAngle === undefined) {
|
|
27
|
+
return magicCallback(false, 'fromAngle is required')
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
if (toAngle === fromAngle) {
|
|
27
31
|
return magicCallback(false, 'fromAngle and toAngle cannot be the same')
|
|
28
32
|
}
|