added quick comment explaing recent action.ts file
This commit is contained in:
parent
ebc73c33d0
commit
362c03fc9e
@ -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
|
// Create a map
|
||||||
const songIdtoChartId = new Map<string, (typeof staticMusicInfo)[0]>(
|
const songIdtoChartId = new Map<string, (typeof staticMusicInfo)[0]>(
|
||||||
staticMusicInfo.map((music) => [
|
staticMusicInfo.map((music) => [
|
||||||
|
Loading…
Reference in New Issue
Block a user