[F] Fix user id being null

pull/17/head
Azalea 2024-02-29 16:53:02 -05:00
parent a9e14a93dd
commit 9ef5e8d037
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ public class UpsertUserAllHandler implements BaseHandler {
// Check playlog backlog
var backlog = UploadUserPlaylogHandler.getPlayBacklog();
if (backlog.containsKey(userId))
backlog.remove(userId).forEach(it -> userPlaylogRepository.save(it.getPlaylog()));
backlog.remove(userId).forEach(it -> {
it.getPlaylog().setUser(newUserData);
userPlaylogRepository.save(it.getPlaylog());
});
}
// UserExtend