Skip to content

Commit

Permalink
fixed types issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleemNeslit committed Dec 26, 2024
1 parent 6c0690a commit 0c678ea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/schemas/src/queries/user.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ import { XpLog } from '../entities/xp.schemas';
import { PG_INT } from '../utils';
import { PaginatedResultSchema, PaginationParamsSchema } from './pagination';
import { AddressView, CommentView, ThreadView } from './thread.schemas';

interface UserProfileAddressViewType {
Community: {
id: string;
base: ChainBase;
ss58_prefix?: number | null;
};
}
export const UserProfileAddressView = AddressView.extend({
Community: z.object({
id: z.string(),
base: z.nativeEnum(ChainBase),
ss58_prefix: PG_INT.nullish(),
}),
});
}) as z.ZodType<UserProfileAddressViewType>;

export const UserProfileCommentView = CommentView.extend({
community_id: z.string(),
Expand Down

0 comments on commit 0c678ea

Please sign in to comment.