Files: 1fe8a8808eb5537d88dcaf30930d6d57f2986822 / position / async / chooseOne.js
406 bytesRaw
1 | const createPosition = require('./position') |
2 | const { CHOOSE_ONE } = require('../../types') |
3 | |
4 | module.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