Skip to content

Commit

Permalink
Merge pull request oddnetworks#7 from oddnetworks/remove-included
Browse files Browse the repository at this point in the history
Removes included from data store
  • Loading branch information
Erik Straub authored Dec 19, 2016
2 parents 7d13cd3 + 536e495 commit 06ab769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ exports.createPlaylistHandler = (bus, getChannel, client, transform) => {
// args.spec.playlist.id
return args => {
const spec = args.spec;
const playlist = spec.playlist || {};
const playlistId = playlist.id;
const collection = spec.playlist || {};
const playlistId = collection.id;
const channelId = spec.channel;

if (!playlistId || typeof playlistId !== 'string') {
Expand All @@ -77,8 +77,6 @@ exports.createPlaylistHandler = (bus, getChannel, client, transform) => {
);
}

const collection = args.object;

return getChannel(channelId).then(channel => {
return getCollection({spec, channel, collection, playlistId});
});
Expand Down
3 changes: 2 additions & 1 deletion lib/fetch-brightcove-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const debug = require('debug')('oddworks:provider:brightcove:fetch-brightcove-vi

module.exports = (bus, client, transform) => {
return args => {
debug('fetchBrightcoveVideo');
const channel = args.channel;
const secrets = channel.secrets || {};
const spec = args.spec;
Expand All @@ -27,6 +26,8 @@ module.exports = (bus, client, transform) => {
creds.accountId = secrets.brightcove.accountId;
}

debug(`fetchBrightcoveVideo id: ${videoId}`);

const params = Object.assign({videoId, skipScheduleCheck}, creds);
return client.getVideo(params)
.then(video => {
Expand Down

0 comments on commit 06ab769

Please sign in to comment.