git ssb

0+

Piet / ssb-loomio



Tree: 19874c0c0d66afbcbbf49555bb33b9b4de8909e4

Files: 19874c0c0d66afbcbbf49555bb33b9b4de8909e4 / position / async / chooseOne.js

406 bytesRaw
1const createPosition = require('./position')
2const { CHOOSE_ONE } = require('../../types')
3
4module.exports = function (server) {
5 const Position = createPosition(server)
6 return function ChooseOne ({ poll, choice, reason, channel, mentions }, cb) {
7 Position({
8 poll,
9 details: {
10 type: CHOOSE_ONE,
11 choice
12 },
13 reason,
14 channel,
15 mentions
16 }, cb)
17 }
18}
19

Built with git-ssb-web