git ssb

0+

Piet / ssb-loomio



Tree: 0e0922a38a178fc20c0532642828075f0de37a72

Files: 0e0922a38a178fc20c0532642828075f0de37a72 / poll / sync / chooseOne.js

352 bytesRaw
1const Poll = require('./poll')
2const { chooseOneType } = require('../types')
3
4function ChooseOne ({ choices, title, closesAt, body, channel, recps, mentions }) {
5 return Poll({
6 pollDetails: {
7 choices,
8 type: chooseOneType
9 },
10 title,
11 closesAt,
12 body,
13 channel,
14 recps,
15 mentions
16 })
17}
18
19module.exports = ChooseOne
20

Built with git-ssb-web