mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-20 21:49:07 +02:00
Improve DLC product data handling and cache management
Update DLC product fetching to include group filtering, implement precise cache invalidation for DLC-related queries using `exact: false`, and add detailed logging for API requests and responses to aid in debugging. Replit-Commit-Author: Agent Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/rEII9fE
This commit is contained in:
1 parent
fcad53ae1d
commit
4ca3c17bad
8 files changed
+495
-15
No files matched your search
@@ -2319,12 +2319,21 @@ RÉSUMÉ DU SCAN
|
||||
userGroups: user.userGroups?.map(ug => ({groupId: ug.group.id, groupName: ug.group.name}))
|
||||
});
|
||||
|
||||
console.log("🔍 Pre-validation data:", {
|
||||
body: req.body,
|
||||
userId,
|
||||
combined: { ...req.body, createdBy: userId }
|
||||
});
|
||||
|
||||
const validatedData = insertDlcProductFrontendSchema.parse({
|
||||
...req.body,
|
||||
createdBy: userId,
|
||||
});
|
||||
|
||||
console.log("✅ Post-validation data:", validatedData);
|
||||
|
||||
const dlcProduct = await storage.createDlcProduct(validatedData);
|
||||
console.log("📦 Raw returned DLC product:", dlcProduct);
|
||||
console.log('✅ DLC Product created successfully:', {
|
||||
id: dlcProduct.id,
|
||||
productName: dlcProduct.productName,
|
||||
|
||||
Reference in new issue
Block a user