fix: enhance record comparison in database sync process for accuracy
Deploy Application / deploy (push) Successful in 35s Details

This commit is contained in:
faisolavolut 2025-11-20 15:11:07 +07:00
parent b5d5b1c272
commit c911d02cd6
1 changed files with 3 additions and 1 deletions

View File

@ -144,7 +144,9 @@ async function processDatabaseSync(database: any) {
for (const op of ops) { for (const op of ops) {
const existData = existingRecords.find( const existData = existingRecords.find(
(record) => record.c_invoice_id === op.c_invoice_id (record) =>
JSON.stringify(record.c_invoice_id) ===
JSON.stringify(op.c_invoice_id)
); );
const existingId = existData ? existData.id : null; const existingId = existData ? existData.id : null;
if (existingId) { if (existingId) {