fix: set SyncedBy from record's CreatedBy instead of sync operator#171
fix: set SyncedBy from record's CreatedBy instead of sync operator#171snehar-nd wants to merge 1 commit into
Conversation
SyncedBy was being overwritten with whoever triggered the data sync session, causing mismatches when a different nurse initiated the sync than the one who created the records. Now SyncedBy = CreatedBy of each individual record, falling back to the sync operator only if CreatedBy is null. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
vanitha1822
left a comment
There was a problem hiding this comment.
The created user and synced user might be different. @snehar-nd
The issue itself, Created and Synced should be the same. @vanitha1822 |



📋 Description
JIRA ID:
AMM-2323
✅ Type of Change
ℹ️ Additional Information
not the nurse who created the record
(e.g., NurseVizagmmu2 created records, NurseMysuru triggered sync)
to the sync operator if CreatedBy is null