Files: 086f196b3d555ff43399bf410273e1f2fae58da5 / position / async / publishChooseOne.js
337 bytesRaw
1 | const buildChooseOne = require('../async/buildChooseOne') |
2 | |
3 | module.exports = function (server) { |
4 | return function publishChooseOne ({ poll, choice, reason, mentions }, cb) { |
5 | buildChooseOne(server)({ poll, choice, reason, mentions }, (err, position) => { |
6 | if (err) return cb(err) |
7 | |
8 | server.publish(position, cb) |
9 | }) |
10 | } |
11 | } |
12 |
Built with git-ssb-web