From 96580967fbb01fa4d5f3148652427da7f4baddf8 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 26 Sep 2023 01:40:05 +0200 Subject: [PATCH] test: fix poll posting --- packages/megalodon/src/misskey.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index d56f178b76..0248be7a34 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -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, {