fix: persist docs created via setDoc (payment not found) #5
|
|
@ -247,6 +247,9 @@ export class SyncServer {
|
|||
setDoc(docId: string, doc: Automerge.Doc<any>): void {
|
||||
this.#docs.set(docId, doc);
|
||||
this.#syncDocToAllPeers(docId);
|
||||
if (this.#onDocChange) {
|
||||
this.#onDocChange(docId, doc);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue