git ssb

0+

Piet / ssb-loomio



Tree: a945a5b2f7107dbaf98a64afca527a1ded419a0d

Files: a945a5b2f7107dbaf98a64afca527a1ded419a0d / position / async / publishPosition.js

335 bytesRaw
1const buildPosition = require('../async/buildPosition')
2
3module.exports = function (server) {
4 return function publishPosition ({ poll, details, reason, mentions }, cb) {
5 buildPosition(server)({ poll, details, 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