unchained / src /scheduler /getAllVideosForOwner.mts
barton
Duplicate from jbilcke-hf/VideoChain-API
53aa97a
raw
history blame contribute delete
406 Bytes
import { Video } from "../types.mts"
import { getCompletedVideos } from "./getCompletedVideos.mts"
import { getPendingVideos } from "./getPendingVideos.mts"
export const getAllVideosForOwner = async (ownerId: string): Promise<Video[]> => {
const pendingVideos = await getPendingVideos(ownerId)
const completedVideos = await getCompletedVideos(ownerId)
return [...pendingVideos, ...completedVideos]
}