File size: 322 Bytes
652f343
5dfc565
652f343
 
9571f2e
 
652f343
 
 
1
2
3
4
5
6
7
8
9
import { VideoTask } from "../types.mts"
import { pendingTasksDirFilePath } from "../config.mts"
import { readTasks } from "./readTasks.mts"

export const getPendingTasks = async (ownerId?: string): Promise<VideoTask[]> => {
  const pendingTasks = await readTasks(pendingTasksDirFilePath, ownerId)

  return pendingTasks
}