add endpoint to delete all trips of user

This commit is contained in:
2026-02-22 17:26:42 +01:00
parent 776b8857b6
commit 98cb2536a2
3 changed files with 15 additions and 0 deletions
@@ -68,4 +68,8 @@ public class TripService {
}
tripRepository.delete(trip);
}
public void deleteAllTripsOfUser(User user) {
tripRepository.deleteAllByUser(user);
}
}