-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add last bank sync tracking back in #4472
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Functions as expected |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged No assets were unchanged |
WalkthroughThe changes update the Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/loot-core/src/server/accounts/app.ts (1)
650-653
: Functionality for tracking last bank sync restored.This code properly restores the functionality for tracking when an account was last synced with the bank by updating the
last_sync
field in the database with the current timestamp.A minor suggestion would be to use
Date.now()
instead ofnew Date().getTime()
for better readability, but both approaches work identically.-const ts = new Date().getTime().toString(); +const ts = Date.now().toString();
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
upcoming-release-notes/4472.md
is excluded by!**/*.md
📒 Files selected for processing (1)
packages/loot-core/src/server/accounts/app.ts
(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Visual regression
- GitHub Check: Functional
🔇 Additional comments (3)
packages/loot-core/src/server/accounts/app.ts (3)
631-637
: Function signature updated correctly to async.The function signature has been properly updated to be asynchronous, which is necessary for the database operation that will be added.
752-752
: Properly awaiting the now asynchronous function.The call to
handleSyncResponse
has been correctly updated to await the result since the function now returns a Promise.
855-858
: Properly awaiting the now asynchronous function in SimpleFin sync.The call to
handleSyncResponse
has been correctly updated to await the result since the function now returns a Promise.
wait. The new "last sync" value doesn't seem to be getting sent back to my main server. I can make new transactions and that is getting synced as expected, but the "last sync" isn't making it across. |
Screen.Recording.2025-02-27.at.19.25.29.mov |
Yes, that value is updating. The value that isn't updating is on my main instance. I can run the demo, connect to my server, bank sync on the demo, and see that the last sync time updates in the demo. Its just that the new value never shows up on my production view. It still says the 19th after may syncs to the server |
Much better 🙂 |
Good catch, thank you |
Looks like this was accidentally removed in #4227