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