Skip to content

Commit

Permalink
Optional instead of nullish
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Nov 3, 2023
1 parent 6a534e8 commit 5507db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/engine-backend/router/endUserRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export {type inferProcedureInput} from '@trpc/server'

export const zConnectTokenPayload = z.object({
endUserId: zEndUserId
.nullish()
.optional()
.describe(
'Anything that uniquely identifies the end user that you will be sending the magic link to',
),
Expand All @@ -49,7 +49,7 @@ export const zConnectPageParams = z.object({
// TODO: How to make sure we actually have a typed api here and can use zProviderName
providerName: z.string().nullish().describe('Which provider to use'),
/** Launch the integration right away */
integrationId: zId('int').nullish(),
integrationId: zId('int').optional(),
/** Whether to show existing resources */
showExisting: z.coerce.boolean().optional().default(true),
})
Expand Down

0 comments on commit 5507db0

Please sign in to comment.