@dhyasama/totem-models 9.101.0 → 9.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,6 +137,16 @@ module.exports = function(mongoose, config) {
137
137
 
138
138
  };
139
139
 
140
+ LimitedPartnerCommunication.statics.getByPostmarkMessageId = function getByPostmarkMessageId(postmarkMessageId, cb) {
141
+
142
+ const self = this;
143
+
144
+ const query = self.findOne({ postmarkMessageId: postmarkMessageId });
145
+
146
+ query.exec(cb);
147
+
148
+ };
149
+
140
150
  LimitedPartnerCommunication.statics.getUnsentByCampaigns = function getUnsentByCampaigns(campaignIds, options, cb) {
141
151
 
142
152
  const self = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.101.0",
3
+ "version": "9.102.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",