Skip to content
Snippets Groups Projects
Unverified Commit 6e0c84cc authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: fix new budget files not syncing (#1291)

Fix a small regression introduced in
https://github.com/actualbudget/actual/pull/1076

Tested locally and this seems to have solved the problem
parent bd125d29
No related branches found
No related tags found
No related merge requests found
{
"name": "@actual-app/crdt",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"description": "CRDT layer of Actual",
"main": "dist/index.js",
......
......@@ -16,7 +16,7 @@ export type TrieNode = {
'0'?: TrieNode;
'1'?: TrieNode;
'2'?: TrieNode;
hash: number;
hash?: number;
};
export function emptyTrie(): TrieNode {
......
......@@ -42,10 +42,7 @@ export function getClock(): Clock {
return clock;
}
export function makeClock(
timestamp: Timestamp,
merkle: TrieNode = { hash: 0 },
) {
export function makeClock(timestamp: Timestamp, merkle: TrieNode = {}) {
return { timestamp: MutableTimestamp.from(timestamp), merkle };
}
......
---
category: Bugfix
authors: [MatissJanis]
---
Fix new budget files not syncing correctly
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment