mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
fix(schemas): remove incorrect tenantInfoGuard type (#4145)
This commit is contained in:
parent
76d8527fb9
commit
3d0715e09e
1 changed files with 1 additions and 1 deletions
|
@ -30,6 +30,6 @@ export type TenantModel = InferModelType<typeof Tenants>;
|
|||
|
||||
export type TenantInfo = Pick<TenantModel, 'id' | 'name' | 'tag'> & { indicator: string };
|
||||
|
||||
export const tenantInfoGuard: z.ZodType<TenantInfo> = Tenants.guard('model')
|
||||
export const tenantInfoGuard = Tenants.guard('model')
|
||||
.pick({ id: true, name: true, tag: true })
|
||||
.extend({ indicator: z.string() });
|
||||
|
|
Loading…
Add table
Reference in a new issue