added endpoint for getting postTags and fixed follow bug

This commit is contained in:
Kai Ritthaler 2025-06-27 09:57:08 +02:00 committed by mrProm3theus
parent f035635df2
commit b868bdb599
8 changed files with 92 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import { string, z } from "zod";
import { z } from "zod";
export const feedQuerySchema = z.object({
createdAt: z.string().datetime().optional(),
@ -7,9 +7,5 @@ export const feedQuerySchema = z.object({
.transform((val) => parseInt(val, 10))
.refine((num) => num > 0 && num <= 30, {
message: "Limit must be between 1 and 30",
})
.optional(),
});
export const updateBioSchema = z.object({
bio: z.string(),
}),
});

View file

@ -0,0 +1,4 @@
import { z } from "zod";
export const updateBioSchema = z.object({
bio: z.string(),
});