mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add getRelatedVideos helper
This commit is contained in:
parent
6c3c4c1ca7
commit
770af94ec2
1 changed files with 11 additions and 0 deletions
|
|
@ -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 )
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue