Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julieta Dubra Raimunde
repp_backend
Commits
dcf35b8a
Commit
dcf35b8a
authored
Oct 25, 2021
by
Agustin
Browse files
Fix to sheet parser, didnt recognize people through height
parent
07a103f7
Pipeline
#16235
passed with stage
in 1 minute and 54 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
src/Services/SheetService.ts
View file @
dcf35b8a
...
...
@@ -73,11 +73,11 @@ const getLiteralGroup = (age: number): string => {
const
validator
=
(
instance
:
any
)
=>
{
if
(
typeof
instance
.
edad
!==
'
number
'
)
{
throw
new
Error
(
'
Edad should be a number
'
);
}
else
if
(
instance
.
peso
!==
undefined
)
{
}
else
if
(
instance
.
peso
!==
''
)
{
if
(
typeof
instance
.
peso
!==
'
number
'
)
{
throw
new
Error
(
'
Peso should be a number
'
);
}
}
else
if
(
instance
.
talla
!==
undefined
)
{
}
else
if
(
instance
.
talla
!==
''
)
{
if
(
typeof
instance
.
talla
!==
'
number
'
)
{
throw
new
Error
(
'
Talla should be a number
'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment