0
Fork 0
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:
wangsijie 2023-07-11 11:04:58 +08:00 committed by GitHub
parent 76d8527fb9
commit 3d0715e09e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() });