Pārlūkot izejas kodu

minor adjusments

Enzo 1 gadu atpakaļ
vecāks
revīzija
dc8db89f88
1 mainītis faili ar 5 papildinājumiem un 9 dzēšanām
  1. 5 9
      services/synchronization.service.ts

+ 5 - 9
services/synchronization.service.ts

@@ -33,16 +33,12 @@ export class MessageSyncrhonizationService implements MessageSynchronisationServ
         let msg : Subject<BaseMessage> = new Subject()
         obsTrigger.subscribe({
             next: obs => {
-                console.log(`${obsTrigger} has trigged synchronization`)
-                this.dataConversion().subscribe({
-                    next: e => console.log(e)
+                let missingMsg = this.dataConversion()
+                missingMsg.subscribe({
+                    next: element => {
+                        msg.next(element)
+                    }
                 })
-                // let missingMsg = this.dataConversion()
-                // missingMsg.subscribe({
-                //     next: element => {
-                //         msg.next(element)
-                //     }
-                // })
             }
         })
         // trigger by timer