mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 07:58:57 +02:00
Fix verification emails
This commit is contained in:
parent
8b10daf2da
commit
e9ac2a8e71
2 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,10 @@ const moduleExports = {
|
|||
source: "/admin/:urlId",
|
||||
destination: "/poll?urlId=:urlId",
|
||||
},
|
||||
{
|
||||
source: "/verify/:urlId/code/:code",
|
||||
destination: "/poll?urlId=:urlId&code=:code",
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
|
|
@ -131,7 +131,7 @@ export default async function handler(
|
|||
},
|
||||
},
|
||||
notifications: legacyPoll.creator.allowNotifications,
|
||||
verificationCode: await nanoid(), // can't get it from api
|
||||
verificationCode: legacyPoll.__private.verificationCode,
|
||||
options: {
|
||||
createMany: {
|
||||
data: newOptions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue