mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
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:
1 parent
a499d480c8
commit
5a7972c21e
3 files changed
+5
-1
No files matched your search
@@ -39,6 +39,10 @@ externalPort = 5000
|
||||
localPort = 41343
|
||||
externalPort = 3001
|
||||
|
||||
[[ports]]
|
||||
localPort = 43315
|
||||
externalPort = 6000
|
||||
|
||||
[[ports]]
|
||||
localPort = 44549
|
||||
externalPort = 5173
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 274 KiB |
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user