-
Notifications
You must be signed in to change notification settings - Fork 8
Remove graphql, fix isFreeTier issue, fix credit card removal issue #79
Conversation
- remove graphql references and code - add helmet for security considerations
- use dotenv to handle env variables for local dev - remove a stripe test key from vc - remove some comments
This pull request also fixes |
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.
Looks pretty good. Just a couple of comments and we can merge.
lib/engine.js
Outdated
@@ -40,6 +43,7 @@ Engine.prototype.start = function(callback) { | |||
var self = this; | |||
|
|||
log.info('starting the billing engine'); | |||
log.info(`connecting to mongoose on ${self._config.storage.mongoURI}`); |
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.
We should make sure that we're not possibly logging credentials here in the Mongo URI.
@@ -41,70 +41,149 @@ PaymentProcessorsRouter.prototype._addPaymentProcessor = function(req) { | |||
}); | |||
}; | |||
|
|||
// PaymentProcessorsRouter.prototype._setUserFreeTier = function(req, isFreeTier) { |
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.
Why are we committing commented code?
- removes commented code - removes unnecessary log line
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.
Looks good! Merging.
This PR
isFreeTier
user issuesaddressing issues #64 and #65