import Service from 'ember-service';
import DeprecatedVideo from 'web-client/models/deprecated-video';
import { UPLOAD_TYPE_PARAM } from 'web-client/utilities/video/types';

export default Service.extend({
  getRecentUploads(channel) {
    return DeprecatedVideo.find('channel-uploads', {
      channel: channel,
      broadcastType: UPLOAD_TYPE_PARAM
    }).load(true);
  }
});
