Compare commits
1 Commits
e501ed0134
...
375bc4843b
| Author | SHA1 | Date | |
|---|---|---|---|
| 375bc4843b |
@ -98,12 +98,12 @@ public class ReadingProgressService {
|
||||
chapterId);
|
||||
return progressRepository
|
||||
.findById(new UserReadingProgressId(userId, chapterId))
|
||||
.map(entity -> mapToDto(entity));
|
||||
.map(this::mapToDto);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void flushDirtyRecords() {
|
||||
log.info("Starting flush of reading progress from Redis to SQL");
|
||||
log.info("Flushing reading progress from Redis to SQL");
|
||||
|
||||
var keys = redisTemplate.keys(REDIS_SEARCH_PATTERN);
|
||||
if (isNull(keys) || keys.isEmpty()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user