Song List Missing Contents
Hi. I'm currently using aqua viewer to manage my Chunithm data.
While using Music List feature, I've noticed although the "Status" part in the Dashboard shows "OK", The music list still has not load all musics(about 60~200/1116 for SDHD).
I think this is due to some improper init process or some limitation of the IndexedDB.
I've tried to fix this issue, what I have done is to re-init the database when user access the Music List page.
Take SDHD as an example:
this.api.get('api/game/chuni/v2/data/music').subscribe(
data => {
this.songList = data;
this.dataSource.data = this.songList;
data.forEach(x => {
this.dbService.add<ChusanMusic>('chusanMusic', x).subscribe(
() => '', error => {
console.error(error);
}
);
});
},
error => this.messageService.notice(error)
);
I've put this before the database read process but I think there must be a more elegant way to solve this problem.
Is there a way to solve this problem without constantly access the server?