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