diff --git a/apps/backend/src/routes/webhooks.ts b/apps/backend/src/routes/webhooks.ts index 5cbee5df..190038ce 100644 --- a/apps/backend/src/routes/webhooks.ts +++ b/apps/backend/src/routes/webhooks.ts @@ -172,8 +172,8 @@ export async function webhookRoutes(app: FastifyInstance): Promise { ) => { const userId = (request.user as any).id; const { id } = request.params; - const page = Math.max(1, parseInt((request.query as any).page || '1', 10)); - const limit = Math.min(100, Math.max(1, parseInt((request.query as any).limit || '20', 10))); + const page = Math.max(1, parseInt((request.query as any, 10).page || '1', 10)); + const limit = Math.min(100, Math.max(1, parseInt((request.query as any, 10).limit || '20', 10))); const endpoint = await app.prisma.webhookEndpoint.findFirst({ where: { id, userId }, diff --git a/apps/mobile/App.tsx b/apps/mobile/App.tsx index d577bd7a..85d618ea 100644 --- a/apps/mobile/App.tsx +++ b/apps/mobile/App.tsx @@ -51,43 +51,4 @@ function AppContent() { const subscription = Linking.addEventListener('url', handleDeepLink); Linking.getInitialURL().then((url) => { - if (url) handleDeepLink({ url }); - }); - - return () => { - subscription.remove(); - }; - }, [login]); - - if (isLoading) { - return ; - } - - return ( - - {isAuthenticated ? : } - - ); -} - -// ── Root ─────────────────────────────────────────────────────────────────────── - -export default function App() { - return ( - - - - - - - - - - - - ); -} - -const styles = StyleSheet.create({ - gestureRoot: { flex: 1 }, -}); + .catch(err => console.error(err)) \ No newline at end of file