refactor: updatedAt
This commit is contained in:
@@ -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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user