Skip to content
Merged
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
9 changes: 2 additions & 7 deletions back/services/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,9 @@ class UserService {
async deleteAccount(userId) {
const id = new Types.ObjectId(userId);

const exerciseResult = await ExerciseRecord.deleteMany({ user: id });
console.log(`🗑️ [deleteAccount] ExerciseRecords supprimés : ${exerciseResult.deletedCount}`);

const workoutResult = await Workout.deleteMany({ user: id });
console.log(`🗑️ [deleteAccount] Workouts supprimés : ${workoutResult.deletedCount}`);

await ExerciseRecord.deleteMany({ user: id });
await Workout.deleteMany({ user: id });
await User.findByIdAndDelete(id);
console.log(`🗑️ [deleteAccount] Utilisateur supprimé : ${userId}`);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion front/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ToastProvider } from './src/context/ToastContext';

import AppNavigator from './src/navigation';
import DesktopInstallPage from './src/components/web/DesktopInstallPage';
import ErrorBoundary from './src/components/common/ErrorBoundary';
import { ErrorBoundary } from './src/components/common';

const isDesktopWeb =
Platform.OS === 'web' &&
Expand Down
95 changes: 0 additions & 95 deletions front/src/components/brand/AthlyLogo.js

This file was deleted.

38 changes: 0 additions & 38 deletions front/src/components/buttons/PrimaryButton.js

This file was deleted.

29 changes: 0 additions & 29 deletions front/src/components/cards/Card.js

This file was deleted.

4 changes: 2 additions & 2 deletions front/src/components/cards/ExerciseCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const styles = StyleSheet.create({
cardInSuperset: {
marginHorizontal: 10,
marginBottom: 8,
backgroundColor: '#1f1f27',
backgroundColor: Colors.borderSubtle,
},
row: {
flexDirection: 'row',
Expand All @@ -157,7 +157,7 @@ const styles = StyleSheet.create({
width: 52,
height: 52,
borderRadius: 12,
backgroundColor: '#0e0e12',
backgroundColor: Colors.cardInner,
justifyContent: 'center',
alignItems: 'center',
marginRight: 14,
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/cards/SetRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { Colors } from '../../constants/theme';
import { haptics } from '../../services/haptics.service';
import { haptics } from '../../services';

// Ligne de série : [-] SET | POIDS (KG) | REPS | VALIDER
//
Expand Down
36 changes: 0 additions & 36 deletions front/src/components/cards/StatBox.js

This file was deleted.

38 changes: 0 additions & 38 deletions front/src/components/cards/WorkoutItem.js

This file was deleted.

4 changes: 2 additions & 2 deletions front/src/components/common/ActionSheetModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const styles = StyleSheet.create({
},
card: {
width: '100%',
backgroundColor: '#13131C',
backgroundColor: Colors.bgDeep2,
borderRadius: 18,
borderWidth: 1,
borderColor: 'rgba(255,255,255,0.08)',
Expand All @@ -82,7 +82,7 @@ const styles = StyleSheet.create({
},
optionBtnLast: { marginBottom: 8 },
optionTxt: { color: Colors.textPrimary, fontSize: 15.5, fontWeight: '600' },
optionTxtDestructive: { color: '#EF4444' },
optionTxtDestructive: { color: Colors.destructive },
cancelBtn: {
height: 50,
justifyContent: 'center',
Expand Down
Loading
Loading