Files: 9db352a29a6d5bac4344c081e9228bd03aaeb97c / position / sync / chooseOne.js
339 bytesRaw
1 | const Postion = require('./position') |
2 | const { CHOOSE_ONE } = require('../../types') |
3 | |
4 | function ChooseOne ({ poll, choice, reason, channel, recps, mentions }) { |
5 | return Postion({ |
6 | poll, |
7 | positionDetails: { |
8 | type: CHOOSE_ONE, |
9 | choice |
10 | }, |
11 | reason, |
12 | channel, |
13 | recps, |
14 | mentions |
15 | }) |
16 | } |
17 | |
18 | module.exports = ChooseOne |
19 |
Built with git-ssb-web