         .done()
 
   fetchAuctionArtworks: ->
-    console.log 'auction'
     Q.promise (resolve) =>
       if @artwork.related?.__typename is 'RelatedSale'
         sale = new Sale @artwork.related

        resolve()

  fetchSimilarArtworks: ->
    console.log 'similar'
    Q.promise (resolve) =>
      artworks = new FilterArtworks []
      artworks.fetch
        data: @prepareParams size: 20, gene_id: slugify(@artwork.category), artist_id: @artwork.artist.id
        error: resolve
        success: (artworks, response, options) =>
          if artworks.length is 20
            @assignRail 'similar_artworks', artworks.toJSON()
          resolve()

  fetchArtistArtworks: ->
    console.log 'artist'
    Q.promise (resolve) =>
      artworks = new FilterArtworks []
      artworks.fetch
        data: @prepareParams artist_id: @artwork.artist.id
        error: resolve
        success: (collection, response) =>
          @assignRail 'artist_artworks', collection.toJSON()
          resolve()

  fetchPartnerArtworks: ->
    Q.promise (resolve) =>
      artworks = new FilterArtworks []
      artworks.fetch
        data: @prepareParams partner_id: @artwork.partner.id
        error: resolve
        success: (collection, response) =>
          console.log 'response', response.length, collection.length
          @assignRail 'partner_artworks', artworks.toJSON()

          resolve()
        error: resolve

  fetchArtwork: ->
    metaphysics

              @assignRail 'closed_auction_artworks', artworks.toJSON()
            else
              @assignRail 'current_auction_artworks', artworks.toJSON()
            resolve()
      else
        resolve()

  fetchShowArtworks: ->
    Q.promise (resolve) =>
      if @artwork.shows.length
        partner = new Partner id: @artwork.shows[0].partner.id
