Skip to content

Commit

Permalink
feat: use queue on campaign post
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Jun 20, 2019
1 parent 88338fc commit 09787a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const messageRouter = require('./lib/message.http.router');
const Campaign = require('./lib/campaign.model');
const campaignRouter = require('./lib/campaign.http.router');


/**
* @module postman
* @name postman
Expand Down
2 changes: 1 addition & 1 deletion lib/campaign.http.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ router.get(
router.post(
PATH_LIST,
postFor({
post: (body, done) => Campaign.post(body, done), // TODO create & send
post: (body, done) => new Campaign(body).queue(done),
})
);

Expand Down
3 changes: 2 additions & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ exports.Contact = createSubSchema({
taggable: true,
fake: { generator: 'internet', type: 'email' },
},
pushToken: {//TODO use array
pushToken: {
//TODO use array
type: String,
trim: true,
index: true,
Expand Down

0 comments on commit 09787a9

Please sign in to comment.