-
Notifications
You must be signed in to change notification settings - Fork 77
refactor(chore): sonar issues fix #2313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ec656f6
to
b7a75d1
Compare
sonarfix
b7a75d1
to
17df414
Compare
@@ -434,12 +434,27 @@ export abstract class SearchQueryBuilder<T extends Model> { | |||
|
|||
return val; | |||
} | |||
private isDateType(type: PropertyType): boolean { | |||
|
|||
isStringTyoe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the name of the function.
isStringTyoe is not correct
this should be isStringType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return ( | ||
type === Date || (typeof type === 'function' && type.name === 'Timestamp') | ||
); | ||
} | ||
|
||
isNumberType( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are the reason for adding these functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to reduce the complexity of "toColumnValue" function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sonarfix
|
Description
sonar issues fix
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: