Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Tim Marshall <[email protected]>",
"name": "postmarkapi",
"description": "Complete Postmark REST API wrapper",
"version": "0.0.3",
"version": "0.0.4",
"main": "./src/pmk.js",
"engines": {
"node": ">=0.10.20"
Expand All @@ -13,4 +13,4 @@
"async": "0.7.0"
},
"repository": "git://github.com/MadisonReed/postmarkapi"
}
}
8 changes: 3 additions & 5 deletions src/pmk.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ PMK.prototype.email = function(message, callback) {
if (!message.to) {
callback(new PMKError('\'to\' email address not set'));
return;
} else if (!message.subject) {
callback(new PMKError('\'subject\' for email not set'));
return;
} else if (!message.text && !message.html) {
}
if (!message.text && !message.html) {
callback(new PMKError('email content (\'text\', \'html\') not set'));
return;
}
Expand Down Expand Up @@ -265,7 +263,7 @@ PMK.prototype.bounceTags = function(callback) {
PMK.prototype.bounceActivate = function(id, callback) {
callback = callback || noOp;

this.put('bounces/' + id + '/active', callback);
this.put('bounces/' + id + '/activate', callback);
};

/**
Expand Down