mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-31 03:48:03 +01:00
debug
This commit is contained in:
@@ -6,7 +6,7 @@ async function getDailyStats() {
|
|||||||
const commands = await DockerCommand.query().where('created_at', '>', new Date().getTime())
|
const commands = await DockerCommand.query().where('created_at', '>', new Date().getTime())
|
||||||
const {data} = await axios.get('https://wakatime.com/api/v1/users/arthurdanjou/stats/last_7_days')
|
const {data} = await axios.get('https://wakatime.com/api/v1/users/arthurdanjou/stats/last_7_days')
|
||||||
const builds = await DockerBuild.query().where('created_at', '>', new Date().getTime())
|
const builds = await DockerBuild.query().where('created_at', '>', new Date().getTime())
|
||||||
console.log('daily : ' + data)
|
console.log('daily : ' + data.data)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
development_hours: data.data[0].grand_total.total_seconds / 60 / 60,
|
development_hours: data.data[0].grand_total.total_seconds / 60 / 60,
|
||||||
|
|||||||
Reference in New Issue
Block a user