static updateFavoriteStatus(id, isFavorite) {
    fetch(`${this.DATABASE_URL}restaurants/${id}/?is_favorite=${isFavorite}`, {
      method: 'PUT'
    }).then(() => {
      this.restaurantsDb.updateIsFavoriteProperty(id, isFavorite)
    });
  }
/**
   * Update favorite restaurants on the server side and in IndexedDB.
   */
Update favorite restaurants on the server side and in IndexedDB.
Update favorite restaurants on the server side and in IndexedDB .
static updateFavoriteStatus(id, isFavorite) {
    fetch(`${this.DATABASE_URL}restaurants/${id}/?is_favorite=${isFavorite}`, {
      method: 'PUT'
    }).then(() => {
      this.restaurantsDb.updateIsFavoriteProperty(id, isFavorite)
    });
  }
static updateFavoriteStatus ( id , isFavorite ) { fetch ( ` ${ this . DATABASE_URL } ${ id } ${ isFavorite } ` , { method : 'PUT' } ) . then ( ( ) => { this . restaurantsDb . updateIsFavoriteProperty ( id , isFavorite ) } ) ; }
Update favorite restaurants on the server side and in IndexedDB.
Update favorite restaurants on the server side and in IndexedDB .