VideoChain-API / src /scheduler /getAllVideosForOwner.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add "movie director assistant" LLM step
e4e0e54
raw
history blame
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]
}