🐛 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
This commit is contained in:
Matiss Janis Aboltins
2023-07-05 21:13:46 +01:00
committed by GitHub
parent bd125d2915
commit 6e0c84ccad
4 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@actual-app/crdt",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"description": "CRDT layer of Actual",
"main": "dist/index.js",

View File

@@ -16,7 +16,7 @@ export type TrieNode = {
'0'?: TrieNode;
'1'?: TrieNode;
'2'?: TrieNode;
hash: number;
hash?: number;
};
export function emptyTrie(): TrieNode {

View File

@@ -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 };
}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MatissJanis]
---
Fix new budget files not syncing correctly