From 1d3fd4c604b83c074a9a9793ae20d8456f425427 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 26 Sep 2023 01:52:11 +0200 Subject: [PATCH] fix: expiredafter time on poll --- packages/megalodon/src/misskey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 0248be7a3..e568af1d0 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1086,7 +1086,7 @@ export default class Misskey implements MegalodonInterface { let pollParam = { choices: options.poll.options, expiresAt: null, - expiredAfter: parseInt(options.poll.expires_in.toString()) + expiredAfter: options.poll.expires_in * 1000 } if (options.poll.multiple !== undefined) { pollParam = Object.assign(pollParam, {