-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone country fix #9167
Phone country fix #9167
Conversation
...ges/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR enhances the phone calling code migration process by improving command execution order and logging behavior in the database upgrade commands.
- Reordered commands in
/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts
to execute phone-related operations before record position backfilling - Added verbose logging control in
/packages/twenty-server/src/database/commands/logger.ts
with newisCommandLogger
type guard - Improved error handling in phone migration commands by replacing console.log with proper logger usage
- Added validation check for
primaryPhoneCallingCode
before updating field metadata to prevent duplicate updates
4 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
.../src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command.ts
Outdated
Show resolved
Hide resolved
.../src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-create-column.command.ts
Show resolved
Hide resolved
...r/src/database/commands/upgrade-version/0-40/0-40-phone-calling-code-migrate-data.command.ts
Show resolved
Hide resolved
Thanks @guillim for your contribution! |
No description provided.