A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
projectdivar/server/updateallscore.js

7 lines
327 B

const axios = require('axios')
axios.get("http://projectdivar.com:4501/playdata")
.then((data)=>{data.data.forEach((song)=>{return axios.get("http://projectdivar.com:4501/recalculatescore/"+song.id)
.then((data)=>{console.log(data.data)})
.catch((err)=>{console.log(err.message)})})})
.catch((err)=>{console.log(err.message)})