feat: generate robot id w uuid
This commit is contained in:
@@ -18,6 +18,7 @@ import { saveFile } from "../storage";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import { getBestSelectorForAction } from "../utils";
|
import { getBestSelectorForAction } from "../utils";
|
||||||
import { browserPool } from "../../server";
|
import { browserPool } from "../../server";
|
||||||
|
import { uuid } from "uuidv4";
|
||||||
|
|
||||||
interface PersistedGeneratedData {
|
interface PersistedGeneratedData {
|
||||||
lastUsedSelector: string;
|
lastUsedSelector: string;
|
||||||
@@ -479,6 +480,7 @@ export class WorkflowGenerator {
|
|||||||
try {
|
try {
|
||||||
this.recordingMeta = {
|
this.recordingMeta = {
|
||||||
name: fileName,
|
name: fileName,
|
||||||
|
id: uuid(),
|
||||||
create_date: this.recordingMeta.create_date || new Date().toLocaleString(),
|
create_date: this.recordingMeta.create_date || new Date().toLocaleString(),
|
||||||
pairs: recording.workflow.length,
|
pairs: recording.workflow.length,
|
||||||
update_date: new Date().toLocaleString(),
|
update_date: new Date().toLocaleString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user