Skip to content
Snippets Groups Projects
Commit f5676a04 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #be use gmtm for shot length in dashboard

parent 8526d399
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ server.get("/", async (request, reply) => {
.table("shots")
.select(
connection.raw(
"width_bucket(extract(epoch from ended_at - began_at)*1000, 0, 60*1000, 60*10)*100 as bucket, count(*)",
"width_bucket(ended_at_gmtm - began_at_gmtm, 0, 60*1000, 60*10)*100 as bucket, count(*)",
),
)
.groupBy("bucket")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment