- #194: Send full date format object instead of just format string to prevent JSON parse errors - #195: Remove non-functional forgot password link, fix README port 3005 -> 3000 - #196: Use ADMIN_PASSWORD env var in migration, update existing user in create-admin script instead of failing - #197: Convert camelCase filter keys to snake_case in photo export to match backend PhotoFilterBuilder
This commit is contained in:
@@ -75,7 +75,20 @@ export const PhotoExportMenu: React.FC<PhotoExportMenuProps> = ({
|
||||
if (selectedPhotoIds.length > 0) {
|
||||
options.photo_ids = selectedPhotoIds;
|
||||
} else if (filters) {
|
||||
options.filter = filters;
|
||||
// Convert camelCase filter keys to snake_case for backend
|
||||
options.filter = {
|
||||
min_rating: filters.minRating,
|
||||
max_rating: filters.maxRating,
|
||||
has_likes: filters.hasLikes,
|
||||
min_likes: filters.minLikes,
|
||||
has_favorites: filters.hasFavorites,
|
||||
min_favorites: filters.minFavorites,
|
||||
has_comments: filters.hasComments,
|
||||
category_id: filters.categoryId,
|
||||
logic: filters.logic,
|
||||
sort: filters.sort,
|
||||
order: filters.order,
|
||||
};
|
||||
}
|
||||
|
||||
exportMutation.mutate(options);
|
||||
|
||||
Reference in New Issue
Block a user