mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Standardize naming for identity verification photo fields in the database
Renames `photo_recto`, `photo_verso`, and `photo_ticket` columns to `photoRecto`, `photoVerso`, and `photoTicket` in the DatabaseStorage class. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/odd0JPx
This commit is contained in:
1 parent
47c750dc93
commit
ec702af70b
1 file changed
+9
-9
+9
-9
@@ -220,9 +220,9 @@ export class DatabaseStorage implements IStorage {
|
|||||||
numeroIdentite: sales.numeroIdentite,
|
numeroIdentite: sales.numeroIdentite,
|
||||||
autoriteDelivrance: sales.autoriteDelivrance,
|
autoriteDelivrance: sales.autoriteDelivrance,
|
||||||
dateDelivrance: sales.dateDelivrance,
|
dateDelivrance: sales.dateDelivrance,
|
||||||
photo_recto: sales.photo_recto,
|
photoRecto: sales.photo_recto,
|
||||||
photo_verso: sales.photo_verso,
|
photoVerso: sales.photo_verso,
|
||||||
photo_ticket: sales.photo_ticket,
|
photoTicket: sales.photo_ticket,
|
||||||
// Product fields
|
// Product fields
|
||||||
productId: saleProducts.id,
|
productId: saleProducts.id,
|
||||||
typeArticle: saleProducts.typeArticle,
|
typeArticle: saleProducts.typeArticle,
|
||||||
@@ -249,9 +249,9 @@ export class DatabaseStorage implements IStorage {
|
|||||||
if (row.id === 17) {
|
if (row.id === 17) {
|
||||||
console.log('DEBUG: Row data for sale 17:', {
|
console.log('DEBUG: Row data for sale 17:', {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
photo_recto: row.photo_recto ? 'PRESENT' : 'NULL',
|
photoRecto: row.photoRecto ? 'PRESENT' : 'NULL',
|
||||||
photo_verso: row.photo_verso ? 'PRESENT' : 'NULL',
|
photoVerso: row.photoVerso ? 'PRESENT' : 'NULL',
|
||||||
photo_ticket: row.photo_ticket ? 'PRESENT' : 'NULL'
|
photoTicket: row.photoTicket ? 'PRESENT' : 'NULL'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!salesMap.has(row.id)) {
|
if (!salesMap.has(row.id)) {
|
||||||
@@ -270,9 +270,9 @@ export class DatabaseStorage implements IStorage {
|
|||||||
numeroIdentite: row.numeroIdentite,
|
numeroIdentite: row.numeroIdentite,
|
||||||
autoriteDelivrance: row.autoriteDelivrance,
|
autoriteDelivrance: row.autoriteDelivrance,
|
||||||
dateDelivrance: row.dateDelivrance,
|
dateDelivrance: row.dateDelivrance,
|
||||||
photoRecto: row.photo_recto,
|
photoRecto: row.photoRecto,
|
||||||
photoVerso: row.photo_verso,
|
photoVerso: row.photoVerso,
|
||||||
photoTicket: row.photo_ticket,
|
photoTicket: row.photoTicket,
|
||||||
products: []
|
products: []
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user