mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-04-01 20:54:14 +00:00
Update patch-db.ts
This commit is contained in:
committed by
Aiden McClelland
parent
8422315b33
commit
4fb0d3570b
@@ -14,7 +14,6 @@ export class PatchDB<T> {
|
|||||||
private sourcesSub = this.sources$.subscribe(sources => {
|
private sourcesSub = this.sources$.subscribe(sources => {
|
||||||
this.updatesSub = merge(...sources.map(s => s.watch$(this.store))).subscribe({
|
this.updatesSub = merge(...sources.map(s => s.watch$(this.store))).subscribe({
|
||||||
next: (res) => {
|
next: (res) => {
|
||||||
console.log('PatchDB -> subscribedChanges -> JCWM:', { res })
|
|
||||||
if ('result' in res) {
|
if ('result' in res) {
|
||||||
this.store.update(res.result)
|
this.store.update(res.result)
|
||||||
this.cache$.next(this.store.cache)
|
this.cache$.next(this.store.cache)
|
||||||
|
|||||||
Reference in New Issue
Block a user