make all fields optional but nonnullable

This commit is contained in:
Richard Yu
2025-12-09 10:45:32 -08:00
parent d954555fc2
commit d95086b82f
8 changed files with 7 additions and 50 deletions

View File

@@ -35,11 +35,6 @@ const mockJobDetail = {
id: 'test-prompt-id',
status: 'completed' as const,
create_time: Date.now(),
execution_start_time: null,
execution_end_time: null,
preview_output: null,
outputs_count: null,
workflow_id: null,
workflow: {
extra_data: {
extra_pnginfo: {
@@ -58,11 +53,6 @@ function createHistoryJob(id: string): JobListItem {
id,
status: 'completed',
create_time: now,
execution_start_time: null,
execution_end_time: null,
preview_output: null,
outputs_count: null,
workflow_id: null,
priority: now
}
}
@@ -73,11 +63,6 @@ function createRunningJob(id: string): JobListItem {
id,
status: 'in_progress',
create_time: now,
execution_start_time: null,
execution_end_time: null,
preview_output: null,
outputs_count: null,
workflow_id: null,
priority: now
}
}