Commit 7c5d1ca
Ronald A Richardson
fix: sync company_users to sandbox so invited users appear in IAM list
The IAM user list is queried against the sandbox database when the console
is in sandbox mode. CompanyUser rows (created by acceptCompanyInvite) were
only written to production, so invited users who had accepted were invisible
to the UserFilter::queryForInternal() whereHas('companyUsers') check.
Add CompanyUser to the SyncSandbox syncable models list so that membership
rows are mirrored to sandbox on every hourly sync. Also add company_users
to the --truncate block for consistency.1 parent 0d4320c commit 7c5d1ca
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments