Update migrate.ts

This commit is contained in:
syuilo 2019-04-10 20:13:14 +09:00
parent 8e344f2deb
commit c58afc67e8
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -255,7 +255,6 @@ async function main() {
if (note.poll) { if (note.poll) {
await Polls.save({ await Polls.save({
id: genId(),
noteId: note._id.toHexString(), noteId: note._id.toHexString(),
choices: note.poll.choices.map((x: any) => x.text), choices: note.poll.choices.map((x: any) => x.text),
expiresAt: note.poll.expiresAt, expiresAt: note.poll.expiresAt,