mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 03:13:10 +02:00
test: fix poll posting
This commit is contained in:
parent
7df25f036a
commit
96580967fb
1 changed files with 2 additions and 2 deletions
|
@ -1086,11 +1086,11 @@ export default class Misskey implements MegalodonInterface {
|
|||
let pollParam = {
|
||||
choices: options.poll.options,
|
||||
expiresAt: null,
|
||||
expiredAfter: options.poll.expires_in
|
||||
expiredAfter: parseInt(options.poll.expires_in.toString())
|
||||
}
|
||||
if (options.poll.multiple !== undefined) {
|
||||
pollParam = Object.assign(pollParam, {
|
||||
multiple: options.poll.multiple
|
||||
multiple: options.poll.multiple.toString() === 'true' ? true : false
|
||||
})
|
||||
}
|
||||
params = Object.assign(params, {
|
||||
|
|
Loading…
Reference in a new issue