fix: convert Unix epoch seconds to Date for span annotation start_time/end_time on insert
This commit is contained in:
parent
4352732630
commit
900443d078
1 changed files with 2 additions and 2 deletions
|
|
@ -65,8 +65,8 @@ export async function POST(request: NextRequest) {
|
|||
.insert(spanAnnotations)
|
||||
.values({
|
||||
chart_id,
|
||||
start_time: actualStartTime,
|
||||
end_time: actualEndTime,
|
||||
start_time: new Date(actualStartTime * 1000),
|
||||
end_time: new Date(actualEndTime * 1000),
|
||||
label,
|
||||
confidence: confidence || null,
|
||||
outcome: outcome || null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue