Skip to content

Commit

Permalink
Merge branch 'master' into feat/tm-1328
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrmr committed Sep 26, 2024
2 parents 575ecbb + af157f4 commit 7730ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/jobs/hydrate/deca/hydrate-deca-raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function updateEffectifDeca(document: IAirbyteRawBalDeca) {

const effectifFound = await checkIfEffectifExists(newDocument, effectifsDECADb());

if (effectifFound) {
if (!effectifFound) {
return await effectifsDECADb().insertOne(newDocument);
} else {
return await effectifsDECADb().updateOne({ _id: effectifFound._id }, newDocument);
Expand Down

0 comments on commit 7730ea9

Please sign in to comment.