feat: save worflow

This commit is contained in:
karishmas6
2024-06-07 23:45:50 +05:30
parent 35e1250d3b
commit 65f901cc26

View File

@@ -88,5 +88,13 @@ export class WorkflowGenerator {
lastAction: '',
}
private registerEventHandlers = (socket: Socket) => {
socket.on('save', async (fileName: string) => {
logger.log('debug', `Saving workflow ${fileName}`);
await this.saveNewWorkflow(fileName)
});
};
}