feat(dashboard): list sources with statistics

This commit is contained in:
2025-11-13 11:25:07 +02:00
parent 8cc40fde67
commit 6503980cbc
24 changed files with 1016 additions and 373 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export const sourcesRouter = createTRPCRouter({
get: protectedProcedure.query(async ({ ctx }) => getSources(ctx.db)),
getById: protectedProcedure.input(getSourceSchema).query(async ({ ctx, input }) => {
return getSourceById(ctx.db, { ...input });
return getSourceById(ctx.db, input.id);
}),
update: protectedProcedure.input(updateSourceSchema).mutation(async ({ ctx, input }) => {