Checkpoint: Correction complète du bouton œil pour les formateurs - changement de adminProcedure à protectedProcedure pour apprenants.getById ET apprenants.getInscriptions
This commit is contained in:
@@ -250,7 +250,7 @@ export const appRouter = router({
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
getById: adminProcedure.input(z.object({ id: z.number() })).query(async ({ input }) => {
|
getById: protectedProcedure.input(z.object({ id: z.number() })).query(async ({ input }) => {
|
||||||
return db.getApprenantById(input.id);
|
return db.getApprenantById(input.id);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user