mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-09 00:08:46 +00:00
added endpoint for getting postTags and fixed follow bug
This commit is contained in:
parent
f035635df2
commit
b868bdb599
8 changed files with 92 additions and 14 deletions
|
@ -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(),
|
||||
}),
|
||||
});
|
||||
|
|
4
code/backend/src/schemas/profileSchemas.ts
Normal file
4
code/backend/src/schemas/profileSchemas.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { z } from "zod";
|
||||
export const updateBioSchema = z.object({
|
||||
bio: z.string(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue