Update validation method for DLC products to improve data handling

Change the mutation HTTP method from PUT to POST for the DLC product validation endpoint to correctly handle state changes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/y2Jqp8Y
This commit is contained in:
michaelschal committed 2025-09-27 11:52:57 +00:00
1 parent a499d480c8
commit 5a7972c21e
3 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ export default function DlcPage() {
// Validate mutation - optimized cache invalidation
const validateMutation = useMutation({
mutationFn: (id: number) => apiRequest(`/api/dlc-products/${id}/validate`, "PUT"),
mutationFn: (id: number) => apiRequest(`/api/dlc-products/${id}/validate`, "POST"),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ["/api/dlc-products"], exact: false });
queryClient.invalidateQueries({ queryKey: ["/api/dlc-products/stats"], exact: false });