Fixed typo and added payment.target.user to recentPayments table in case User ID was used instead of email or phone # to send a payment
This commit is contained in:
@@ -428,6 +428,7 @@ exports.getVenmo = function(req, res, next) {
|
||||
getRecentPayments: function(done) {
|
||||
request.get({ url: 'https://api.venmo.com/v1/payments?' + query, json: true }, function(err, request, body) {
|
||||
done(err, body);
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -444,7 +445,7 @@ exports.getVenmo = function(req, res, next) {
|
||||
exports.postVenmo = function(req, res, next) {
|
||||
req.assert('user', 'Phone, Email or Venmo User ID cannot be blank').notEmpty();
|
||||
req.assert('note', 'Please enter a message to accompany the payment').notEmpty();
|
||||
req.assert('amount', 'They amount you want to pay cannot be blank').notEmpty();
|
||||
req.assert('amount', 'The amount you want to pay cannot be blank').notEmpty();
|
||||
|
||||
var errors = req.validationErrors();
|
||||
|
||||
|
Reference in New Issue
Block a user