From 566301f7cad2474fbf44cd5127344bfbdc2fc9d4 Mon Sep 17 00:00:00 2001 From: Puneet Lath Date: Mon, 26 Jun 2023 11:22:27 -0400 Subject: [PATCH] Explain why were using old personalDetails object --- src/libs/migrations/PersonalDetailsByAccountID.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/migrations/PersonalDetailsByAccountID.js b/src/libs/migrations/PersonalDetailsByAccountID.js index 0fd8b84c8fb1..8716f063357e 100644 --- a/src/libs/migrations/PersonalDetailsByAccountID.js +++ b/src/libs/migrations/PersonalDetailsByAccountID.js @@ -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} */ function getDeprecatedPersonalDetailsFromOnyx() {