mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-28 08:16:22 +02:00
🔗 Add support for shorter urls (#750)
This commit is contained in:
parent
30a1136529
commit
2e5468ed65
5 changed files with 16 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
import { prisma } from "@rallly/database";
|
||||
import { sendEmail } from "@rallly/emails";
|
||||
import { absoluteUrl } from "@rallly/utils";
|
||||
import { absoluteUrl, shortUrl } from "@rallly/utils";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import dayjs from "dayjs";
|
||||
import timezone from "dayjs/plugin/timezone";
|
||||
|
@ -140,7 +140,7 @@ export const polls = router({
|
|||
? absoluteUrl(`/admin/${adminToken}`)
|
||||
: absoluteUrl(`/poll/${pollId}`);
|
||||
|
||||
const participantLink = absoluteUrl(`/invite/${pollId}`);
|
||||
const participantLink = shortUrl(`/invite/${pollId}`);
|
||||
|
||||
if (email && name) {
|
||||
await sendEmail("NewPollEmail", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue