Skip to content

Commit

Permalink
Explain why were using old personalDetails object
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Jun 26, 2023
1 parent d5ed78f commit 566301f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/migrations/PersonalDetailsByAccountID.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ function getReportActionsFromOnyx() {
}

/**
* We use the old personalDetails object becuase it is more efficient for this migration since it is keyed by email address.
* Also, if the old personalDetails object is not available, that likely means the migration has already run successfully before on this account.
*
* @returns {Promise<Object>}
*/
function getDeprecatedPersonalDetailsFromOnyx() {
Expand Down

0 comments on commit 566301f

Please sign in to comment.