refactor: create_date to createdAt

This commit is contained in:
karishmas6
2024-10-08 20:49:29 +05:30
parent 3fd86fa41c
commit b1cef177da

View File

@@ -31,7 +31,7 @@ interface PersistedGeneratedData {
interface MetaData {
name: string;
id: string;
create_date: string;
createdAt: string;
pairs: number;
update_date: string;
params: string[],
@@ -87,7 +87,7 @@ export class WorkflowGenerator {
private recordingMeta: MetaData = {
name: '',
id: '',
create_date: '',
createdAt: '',
pairs: 0,
update_date: '',
params: [],
@@ -481,7 +481,7 @@ export class WorkflowGenerator {
this.recordingMeta = {
name: fileName,
id: uuid(),
create_date: this.recordingMeta.create_date || new Date().toLocaleString(),
createdAt: this.recordingMeta.createdAt || new Date().toLocaleString(),
pairs: recording.workflow.length,
update_date: new Date().toLocaleString(),
params: this.getParams() || [],