inside start function we're awaiting the fetch call
This commit is contained in:
		@@ -67,10 +67,10 @@ export class ListenerRss extends EventEmitter {
 | 
			
		||||
   */
 | 
			
		||||
  start(): void {
 | 
			
		||||
    this.loopRunning = true;
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    const fun: () => void = async () => {
 | 
			
		||||
      await Promise.resolve(
 | 
			
		||||
        this.fetchRSS()
 | 
			
		||||
      await Promise.resolve( 
 | 
			
		||||
        await this.fetchRSS()
 | 
			
		||||
          .then((obj: { [key: string]: any }) => {
 | 
			
		||||
            this.emit("update", obj);
 | 
			
		||||
            const updatedEntriesLinks = obj.items.map(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user