VideoChain-API / src /scheduler /getCompletedTasks.mts
jbilcke-hf's picture
jbilcke-hf HF staff
ready for release (sort of)
9571f2e
raw
history blame
332 Bytes
import { VideoTask } from "../types.mts"
import { completedTasksDirFilePath } from "../config.mts"
import { readTasks } from "./readTasks.mts"
export const getCompletedTasks = async (ownerId?: string): Promise<VideoTask[]> => {
const completedTasks = await readTasks(completedTasksDirFilePath, ownerId)
return completedTasks
}