File size: 372 Bytes
e4e0e54
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import { Video } from "../types.mts"
import { completedMetadataDirFilePath } from "../config.mts"
import { readVideoMetadataFiles } from "./readVideoMetadataFiles.mts"

export const getCompletedVideos = async (ownerId?: string): Promise<Video[]> => {
  const completedVideos = await readVideoMetadataFiles(completedMetadataDirFilePath, ownerId)

  return completedVideos
}