mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 10:41:54 +02:00
♻️ Use synchronous id generation (#645)
This commit is contained in:
parent
27bbe6f947
commit
ffa7007184
9 changed files with 12 additions and 27 deletions
|
@ -53,8 +53,8 @@ export const polls = router({
|
|||
)
|
||||
.mutation(
|
||||
async ({ ctx, input }): Promise<{ id: string; urlId: string }> => {
|
||||
const adminUrlId = await nanoid();
|
||||
const participantUrlId = await nanoid();
|
||||
const adminUrlId = nanoid();
|
||||
const participantUrlId = nanoid();
|
||||
|
||||
let email = input.user?.email;
|
||||
let name = input.user?.name;
|
||||
|
@ -83,7 +83,7 @@ export const polls = router({
|
|||
title: true,
|
||||
},
|
||||
data: {
|
||||
id: await nanoid(),
|
||||
id: nanoid(),
|
||||
title: input.title,
|
||||
timeZone: input.timeZone,
|
||||
location: input.location,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue