feat: generate robot id w uuid

This commit is contained in:
karishmas6
2024-10-08 20:48:18 +05:30
parent 0b0eab17b4
commit 3fd86fa41c

View File

@@ -18,6 +18,7 @@ import { saveFile } from "../storage";
import fs from "fs";
import { getBestSelectorForAction } from "../utils";
import { browserPool } from "../../server";
import { uuid } from "uuidv4";
interface PersistedGeneratedData {
lastUsedSelector: string;
@@ -479,6 +480,7 @@ export class WorkflowGenerator {
try {
this.recordingMeta = {
name: fileName,
id: uuid(),
create_date: this.recordingMeta.create_date || new Date().toLocaleString(),
pairs: recording.workflow.length,
update_date: new Date().toLocaleString(),