feat: export getRecordingByFileName
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user