Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed Jun 13, 2023
1 parent 9ea2809 commit 551e3f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/layer/domain/indexeddb/service/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ export class StoreChannel<M extends object> extends ChannelStore<K<M>, StoreChan
value: new Observation<[StorageChannel.EventType, Prop<M[L]>], StorageChannel.Event<M[L]>, void>({ limit: Infinity })
},
}),
'' in this.schemas
? (this.schemas[key] ?? this.schemas[''])(key) as M[L] & object
: this.schemas[key](key) as M[L] & object,
(this.schemas[key] ?? this.schemas[''])(key) as M[L] & object,
(prop, newValue, oldValue) => {
if (!this.alive || this.sources.get(key) !== source) return;
this.add(new StoreChannel.Record<L, StoreChannel.Value<L>>(key, { [prop]: newValue }));
Expand Down

0 comments on commit 551e3f2

Please sign in to comment.