mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 02:29:58 -05:00
🐛 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:
committed by
GitHub
parent
bd125d2915
commit
6e0c84ccad
@@ -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",
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
6
upcoming-release-notes/1291.md
Normal file
6
upcoming-release-notes/1291.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Fix new budget files not syncing correctly
|
||||
Reference in New Issue
Block a user