renamed from temp access to timed access

This commit is contained in:
Maidul Islam
2024-03-12 21:49:33 +05:30
committed by Akhil Mohan
parent 4152b3a524
commit fc57884035
4 changed files with 15 additions and 12 deletions
@@ -70,7 +70,7 @@ export const registerIdentityProjectRouter = async (server: FastifyZodProvider)
role: z.string(),
isTemporary: z.literal(true),
temporaryMode: z.nativeEnum(ProjectUserMembershipTemporaryMode),
temporaryRange: z.string().refine((val) => ms(val) > 0, "Temporary range must be positive"),
temporaryRange: z.string().refine((val) => ms(val) > 0, "Temporary range must be a positive number"),
temporaryAccessStartTime: z.string().datetime()
})
])