mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
start
This commit is contained in:
committed by
Aiden McClelland
parent
b7bd147c76
commit
0c6a0218a6
@@ -9,7 +9,6 @@ import { parsePropertiesPermissive } from 'src/app/util/properties.util'
|
||||
import { Mock } from './mock-app-fixures'
|
||||
import { HttpService } from '../http.service'
|
||||
import markdown from 'raw-loader!src/assets/markdown/md-sample.md'
|
||||
import { map } from 'rxjs/operators'
|
||||
|
||||
@Injectable()
|
||||
export class MockApiService extends ApiService {
|
||||
@@ -22,10 +21,9 @@ export class MockApiService extends ApiService {
|
||||
|
||||
// every time a patch is returned from the mock, we override its sequence to be 1 more than the last sequence in the patch-db as provided by `o`.
|
||||
watch$ (store: Store<DataModel>): Observable<Update<DataModel>> {
|
||||
store.watchCache$().pipe(map(cache => cache.sequence)).subscribe(seq => {
|
||||
store.sequence$.subscribe(seq => {
|
||||
console.log('INCOMING: ', seq)
|
||||
if (this.sequence < seq) {
|
||||
console.log('hererereree')
|
||||
this.sequence = seq
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user