-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrade API to 1.4 versions #26
base: main
Are you sure you want to change the base?
Conversation
src/core/builder/query-builder.ts
Outdated
throw new Error(str); | ||
} | ||
|
||
private isDate(val: any) { |
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.
метод называется Is Date, по идее должен проверять является ли значение датой, но это пропустит не валидную дату. Например new Date("ержан")
вернет true
. Если это используется только для сужения типов, то лучше вынести из класса.
* Upgrade QueryBuilder to class with methods, or just request types * Pass types to each service for QueryBuilder
query.append(key, this.fixedEncodeURIComponent(String(val))); | ||
}; | ||
switch (queryBuilderField) { | ||
case QueryBuilderFields.$ne: |
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.
Вынеси в отдельный приватный метод весь switch
No description provided.