Commit fe4e591
committed
fix: revert accidental importOrganization edit that referenced undefined helper
Bugbot flagged a High Severity ReferenceError in my previous commit 9cf6cb7:
stale refactor code sitting in my worktree from an earlier exploration of a
`subscribeOrSkip` helper got swept into `git add -A` and landed in the
Organization.importOrganization method. The helper was never defined,
never imported, and never exported — so the commit compiled but would
crash at runtime with `ReferenceError: subscribeOrSkip is not defined`
on the first non-simulator-mode call to importOrganization.
importOrganization is out of scope for this PR; its improvements live in
#1603. Revert that function's "Subscribe to the org store first, then
check sync status" block to match origin/v2-rc2 verbatim. All
intentional #1600 changes (reconcileOrganization + skipOnUnsynced,
governance sync, task intervals, tests) are untouched.
Verified by `git diff origin/v2-rc2 -- src/models/organizations/organizations.model.js`
now showing only reconcileOrganization changes.1 parent 9cf6cb7 commit fe4e591
1 file changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1030 | 1030 | | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1041 | 1037 | | |
1042 | 1038 | | |
1043 | 1039 | | |
| |||
0 commit comments