File size: 362 Bytes
e4e0e54
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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
}