♻️ Rename registration token to invite, add created by

This commit is contained in:
Meier Lukas
2023-08-01 11:43:24 +02:00
parent df890b8c0a
commit f93d935175
18 changed files with 109 additions and 97 deletions

View File

@@ -1,7 +1,7 @@
import dayjs from 'dayjs';
import { z } from 'zod';
export const createRegistrationTokenSchema = z.object({
export const createInviteSchema = z.object({
expiration: z
.date()
.min(dayjs().add(5, 'minutes').toDate())