title: TypeORM: subscribe to two models
body: <p>Hi I have been working with TypeORM and Im having trouble subscribing to two models, actions...
  I want to listen to changes on two models not just one</p>
  
  <p>I have 2 models User and Post
  How can I listen to update on both of those models</p>
  
  <pre><code>import { EntitySubscriberInterface, EventSubscriber, InsertEvent, UpdateEvent } from 'typeorm';
  import { User } from '../users/user.entity';
  
  @EventSubscriber()
  export class HistorySubscriber implements EntitySubscriberInterface&lt;User&gt; {
  
      listenTo() {
          return User; // here i would like to listen also to post Updates
      }
  
  
      /**
       * Called after User update.
       */
      async afterUpdate(event: UpdateEvent&lt;User&gt;) {
          const newValue = event.entity;
  
      }
  
  }
  </code></pre>