feat: export getRecordingByFileName

This commit is contained in:
karishmas6
2024-10-08 23:27:56 +05:30
parent 4b326784e1
commit 1462ca1f6a

View File

@@ -14,7 +14,7 @@ import { requireSignIn } from '../middlewares/auth';
// import { workflowQueue } from '../worker';
// todo: move from here
const getRecordingByFileName = async (fileName: string): Promise<any | null> => {
export const getRecordingByFileName = async (fileName: string): Promise<any | null> => {
try {
const recording = await readFile(`./../storage/recordings/${fileName}.waw.json`)
const parsedRecording = JSON.parse(recording);