VideoChain-API / src /database /getCompletedTasks.mts
jbilcke-hf's picture
jbilcke-hf HF staff
working on the VideoChain queue system
652f343
raw
history blame
309 Bytes
import { VideoTask } from "../types.mts"
import { completedTasksDirFilePath } from "./constants.mts"
import { readTasks } from "./readTasks.mts"
export const getCompletedTasks = async (): Promise<VideoTask[]> => {
const completedTasks = await readTasks(completedTasksDirFilePath)
return completedTasks
}