色々
This commit is contained in:
@@ -15,7 +15,7 @@ export default async function ChannelEdit(fastify: FastifyInstance) {
|
||||
return res.code(400).send(req.token);
|
||||
|
||||
const result = ChannelRepository.schema
|
||||
.omit({ userid: true }).partial()
|
||||
.omit({ userid: true, community: true }).partial()
|
||||
.merge(z.object({ id: z.string().length(10) }))
|
||||
.refine(data =>
|
||||
!Object.keys(data).length
|
||||
|
||||
Reference in New Issue
Block a user