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)
|
.insert(spanAnnotations)
|
||||||
.values({
|
.values({
|
||||||
chart_id,
|
chart_id,
|
||||||
start_time: actualStartTime,
|
start_time: new Date(actualStartTime * 1000),
|
||||||
end_time: actualEndTime,
|
end_time: new Date(actualEndTime * 1000),
|
||||||
label,
|
label,
|
||||||
confidence: confidence || null,
|
confidence: confidence || null,
|
||||||
outcome: outcome || null,
|
outcome: outcome || null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue