fix: enhance record comparison in database sync process for accuracy
Deploy Application / deploy (push) Successful in 35s
Details
Deploy Application / deploy (push) Successful in 35s
Details
This commit is contained in:
parent
b5d5b1c272
commit
c911d02cd6
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue