(thread: Record<string, unknown>)
| 127 | } |
| 128 | |
| 129 | export function getThreadTimestamp(thread: Record<string, unknown>) { |
| 130 | const raw = |
| 131 | (thread.updatedAt ?? thread.updated_at ?? thread.createdAt ?? thread.created_at) ?? |
| 132 | 0; |
| 133 | return normalizeThreadTimestamp(raw); |
| 134 | } |
| 135 | |
| 136 | export function getThreadCreatedTimestamp(thread: Record<string, unknown>) { |
| 137 | const raw = (thread.createdAt ?? thread.created_at) ?? 0; |
no test coverage detected