Skip to content

Commit

Permalink
Remove TODO comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaviask committed Aug 7, 2024
1 parent ea4f7be commit 7dd9196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion libs/model/src/community/GetCommunities.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function GetCommunities(): Query<typeof schemas.GetCommunities> {
auth: [],
secure: false,
body: async ({ payload }) => {
// TODO: constrain order_by
const {
base,
tag_ids,
Expand Down
5 changes: 4 additions & 1 deletion libs/schemas/src/queries/community.schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import { PaginatedResultSchema, PaginationParamsSchema } from './pagination';
export const GetCommunities = {
input: PaginationParamsSchema.extend({
base: z.nativeEnum(ChainBase).optional(),
// TODO: why is this a type error?
// NOTE 8/7/24: passing arrays as GET requests is not supported
// to support this field, we converted queries to use POST instead
// but we may need a workaround such as a regex-parsed string
// in the future, depending on the impact of the GET-POST change.
tag_ids: PG_INT.array().optional(),
include_node_info: z.boolean().optional(),
stake_enabled: z.boolean().optional(),
Expand Down

0 comments on commit 7dd9196

Please sign in to comment.