diff --git a/attached_assets/{CE1E91BE-0DC8-46F0-BBE1-258FED86D3AF}_1755172880551.png b/attached_assets/{CE1E91BE-0DC8-46F0-BBE1-258FED86D3AF}_1755172880551.png new file mode 100644 index 0000000..d05ec01 Binary files /dev/null and b/attached_assets/{CE1E91BE-0DC8-46F0-BBE1-258FED86D3AF}_1755172880551.png differ diff --git a/server/storage.ts b/server/storage.ts index 796022d..7eaa570 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -1368,6 +1368,7 @@ export class DatabaseStorage implements IStorage { const results = await query.orderBy(asc(dlcProducts.expiryDate)); return results.map((row: any) => ({ ...row.dlcProduct, + dlcDate: row.dlcProduct.expiryDate, // ✅ Mapping expiryDate vers dlcDate pour frontend supplier: row.supplier, group: row.group, creator: row.creator || { id: row.dlcProduct.createdBy, username: 'unknown' } @@ -1389,6 +1390,7 @@ export class DatabaseStorage implements IStorage { if (!result) return undefined; return { ...result.dlcProduct, + dlcDate: result.dlcProduct.expiryDate, // ✅ Mapping expiryDate vers dlcDate pour frontend supplier: result.supplier, group: result.group, creator: result.creator || { id: result.dlcProduct.createdBy, username: 'unknown' }