scuttle-poll
Version:
Create and vote on polls on ssb
12 lines (9 loc) • 341 B
JavaScript
const buildMeetingTime = require('./buildMeetingTime')
module.exports = function (server) {
return function publishtMeetingTime ({ poll, choices, reason, mentions }, cb) {
buildMeetingTime(server)({ poll, choices, reason, mentions }, (err, position) => {
if (err) return cb(err)
server.publish(position, cb)
})
}
}