core class for system attributes sysCreated / sysModified
This commit is contained in:
parent
2a60f322ca
commit
892603156c
2 changed files with 3 additions and 3 deletions
|
|
@ -281,8 +281,8 @@ export async function fetchWorkflowRuns(
|
||||||
|
|
||||||
export interface CompletedRun extends Automation2Run {
|
export interface CompletedRun extends Automation2Run {
|
||||||
workflowLabel?: string;
|
workflowLabel?: string;
|
||||||
_modifiedAt?: number;
|
sysModifiedAt?: number;
|
||||||
_createdAt?: number;
|
sysCreatedAt?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchCompletedRuns(
|
export async function fetchCompletedRuns(
|
||||||
|
|
|
||||||
|
|
@ -337,7 +337,7 @@ const OutputCard: React.FC<{
|
||||||
run: CompletedRun;
|
run: CompletedRun;
|
||||||
instanceId?: string;
|
instanceId?: string;
|
||||||
}> = ({ run }) => {
|
}> = ({ run }) => {
|
||||||
const ts = run._modifiedAt ?? run._createdAt ?? 0;
|
const ts = run.sysModifiedAt ?? run.sysCreatedAt ?? 0;
|
||||||
const files: Array<{ name: string; fileId: string }> = [];
|
const files: Array<{ name: string; fileId: string }> = [];
|
||||||
const nodeOutputs = run.nodeOutputs ?? {};
|
const nodeOutputs = run.nodeOutputs ?? {};
|
||||||
for (const [, out] of Object.entries(nodeOutputs)) {
|
for (const [, out] of Object.entries(nodeOutputs)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue