Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/backend/src/routes/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ export async function webhookRoutes(app: FastifyInstance): Promise<void> {
) => {
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 },
Expand Down
41 changes: 1 addition & 40 deletions apps/mobile/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <SplashScreen />;
}

return (
<NavigationContainer linking={linking}>
{isAuthenticated ? <MainTabs /> : <AuthStack />}
</NavigationContainer>
);
}

// ── Root ───────────────────────────────────────────────────────────────────────

export default function App() {
return (
<GestureHandlerRootView style={styles.gestureRoot}>
<SafeAreaProvider>
<ThemeProvider>
<AuthProvider>
<BottomSheetModalProvider>
<AppContent />
</BottomSheetModalProvider>
</AuthProvider>
</ThemeProvider>
</SafeAreaProvider>
</GestureHandlerRootView>
);
}

const styles = StyleSheet.create({
gestureRoot: { flex: 1 },
});
.catch(err => console.error(err))
Loading