Skip to content

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Mar 19, 2025

fix: Add statusMap for account status

@fit2bot fit2bot requested a review from a team March 19, 2025 06:44
@@ -139,7 +143,7 @@ export const gatherAccountHeaderActions = (vm) => {
})
vm.$axios.put(
`/api/v1/accounts/gathered-accounts/status/`,
{ ids: ids, status: 'confirmed' }
{ ids: ids, status: statusMap.confirmed }
).then(() => {
vm.$message.success(vm.$tc('SyncSuccessMsg'))
}).catch(err => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend reviewing these parts of the code:

  • Make sure you have up to date time utilities that work with JavaScript's Date Object.
  • Use proper formatting string templates instead of directly calling toSafeLocalDateStr for consistency and readability.
  • Consider using const to avoid unnecessary function redeclaration.

Let me know if this helps!

Copy link

@w940853815 w940853815 merged commit b0aec69 into dev Mar 19, 2025
6 checks passed
@w940853815 w940853815 deleted the pr@dev@fix_update_status branch March 19, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants