Skip to content

Commit a1a4b0d

Browse files
committed
Merge pull request #42 from teamsnap/payment-note-validation
Payment note validation
2 parents c41f36a + f7542f5 commit a1a4b0d

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

lib/teamsnap.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,9 +1728,6 @@ exports.savePaymentNote = function(paymentNote, callback) {
17281728
if (!paymentNote.note) {
17291729
return this.reject('You must provide a note.', 'note', callback);
17301730
}
1731-
if (!paymentNote.description) {
1732-
return this.reject('You must provide a description.', 'description', callback);
1733-
}
17341731
return this.saveItem(paymentNote, callback);
17351732
};
17361733

@@ -4512,7 +4509,7 @@ _ref = require('./model'), Collection = _ref.Collection, Item = _ref.Item;
45124509
require('./errors');
45134510

45144511
TeamSnap = (function() {
4515-
TeamSnap.prototype.version = '1.2.0';
4512+
TeamSnap.prototype.version = '1.2.1';
45164513

45174514
TeamSnap.prototype.promises = promises;
45184515

lib/teamsnap.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/test/js/test.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "teamsnap.js",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A JavaScript library for using the TeamSnap API.",
55
"author": "Jacob Wright with TeamSnap (http://www.teamsnap.com)",
66
"homepage": "https://github.com/teamsnap/teamsnap-javascript-sdk",

src/collections/paymentNotes.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ exports.savePaymentNote = (paymentNote, callback) ->
2727
'memberPaymentId', callback
2828
unless paymentNote.note
2929
return @reject 'You must provide a note.', 'note', callback
30-
unless paymentNote.description
31-
return @reject 'You must provide a description.', 'description', callback
3230
@saveItem paymentNote, callback

src/teamsnap.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ promises = require './promises'
33
require './errors'
44

55
class TeamSnap
6-
version: '1.2.0'
6+
version: '1.2.1'
77
promises: promises
88
when: promises.when
99
TeamSnap: TeamSnap

0 commit comments

Comments
 (0)