UNPKG

scuttle-poll

Version:

Create and vote on polls on ssb

12 lines (9 loc) 341 B
const Resolution = require('../async/buildResolution') module.exports = function (server) { return function publishResolution ({ poll, choices, body, mentions, recps }, cb) { Resolution(server)({ poll, choices, body, mentions, recps }, (err, content) => { if (err) return cb(err) server.publish(content, cb) }) } }