Massive backend refactoring done

This commit is contained in:
AG
2025-12-10 14:56:20 +02:00
parent 502943f7d0
commit 95a5e37748
47 changed files with 1898 additions and 1416 deletions

View File

@@ -85,9 +85,9 @@ export const useTracker = (props: any) => { // Props ignored/removed
// Function to reload Quick Log session
const loadQuickLogSession = async () => {
try {
const response = await api.get<{ success: boolean; session?: WorkoutSession }>('/sessions/quick-log');
if (response.success && response.session) {
setQuickLogSession(response.session);
const response = await api.get<any>('/sessions/quick-log');
if (response.success && response.data?.session) {
setQuickLogSession(response.data.session);
}
} catch (error) {
console.error("Failed to load quick log session:", error);