refactor: updatedAt

This commit is contained in:
karishmas6
2024-10-08 20:51:56 +05:30
parent 8ce7246673
commit 40d2b573ff

View File

@@ -33,7 +33,7 @@ interface MetaData {
id: string; id: string;
createdAt: string; createdAt: string;
pairs: number; pairs: number;
update_date: string; updatedAt: string;
params: string[], params: string[],
} }
@@ -89,7 +89,7 @@ export class WorkflowGenerator {
id: '', id: '',
createdAt: '', createdAt: '',
pairs: 0, pairs: 0,
update_date: '', updatedAt: '',
params: [], params: [],
} }
@@ -483,7 +483,7 @@ export class WorkflowGenerator {
id: uuid(), id: uuid(),
createdAt: this.recordingMeta.createdAt || new Date().toLocaleString(), createdAt: this.recordingMeta.createdAt || new Date().toLocaleString(),
pairs: recording.workflow.length, pairs: recording.workflow.length,
update_date: new Date().toLocaleString(), updatedAt: new Date().toLocaleString(),
params: this.getParams() || [], params: this.getParams() || [],
} }
fs.mkdirSync('../storage/recordings', { recursive: true }) fs.mkdirSync('../storage/recordings', { recursive: true })