-
Notifications
You must be signed in to change notification settings - Fork 35
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
Lint proxies directory #2103
Lint proxies directory #2103
Conversation
- Remove conditional
@apinf/developers please review |
|
||
Meteor.publish('allProxies', function () { | ||
let proxies; |
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.
For publish function the default value must be []
@@ -70,6 +81,12 @@ Meteor.methods({ | |||
} | |||
}, | |||
createApiBackendOnApiUmbrella (apiBackend, proxyId) { | |||
// Make sure apiBackend is a String | |||
check(apiBackend, String); |
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.
apiBackend
is not a String. I'll check the type and write it
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.
Probably is Object
type.
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.
Yes, it is. @mauriciovieira Change Strign
type to Object
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.
OK
@@ -70,6 +81,12 @@ Meteor.methods({ | |||
} | |||
}, | |||
createApiBackendOnApiUmbrella (apiBackend, proxyId) { | |||
// Make sure apiBackend is a String | |||
check(apiBackend, String); |
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.
Yes, it is. @mauriciovieira Change Strign
type to Object
@@ -97,6 +114,12 @@ Meteor.methods({ | |||
return response; | |||
}, | |||
updateApiBackendOnApiUmbrella (apiBackend, proxyId) { | |||
// Make sure apiBackend is a String | |||
check(apiBackend, String); |
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.
@mauriciovieira Change String
type to Object
This PR is part of #2045 endeavor.