added quick comment explaing recent action.ts file

This commit is contained in:
Polaris 2024-08-15 00:47:10 -04:00
parent ebc73c33d0
commit 362c03fc9e

View File

@ -47,6 +47,15 @@ export async function getUserRatingBaseList() {
},
});
// chartId is the difficutly i.e
// easy, hard, expert, master, ultima, worlds end
// songId is the id of the specific song so we are mapping the song in the profile recent to the song
// in the chuni static music table so we can get name and jacket path etc
// then we are mapping the musicId to the chartId to get the proper difficutly from above
// this is very confusing and my brain hurts
// if someone could make this cleaner id highly appreciate it
// Create a map
const songIdtoChartId = new Map<string, (typeof staticMusicInfo)[0]>(
staticMusicInfo.map((music) => [