diff --git a/helpers/related.js b/helpers/related.js index 73bc7dd..f157ef2 100644 --- a/helpers/related.js +++ b/helpers/related.js @@ -82,3 +82,14 @@ export function videoBenchmarksRelatedToApp ( app, videoListSet ) { }) } + +export function getRelatedVideos ( { listing, videoListSet, appListSet } = {} ) { + const listingType = getAppType( listing ) + + if ( listingType === 'video' ) { + return videosRelatedToVideo( listing, appListSet, videoListSet ) + } + + return videoBenchmarksRelatedToApp( listing, videoListSet ) +} +