mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 22:11:01 +08:00
Fix null multiple field for poll posts
This commit is contained in:
@@ -111,7 +111,7 @@ public class PostMapper {
|
||||
.collect(Collectors.groupingBy(PollVote::getOptionIndex,
|
||||
Collectors.mapping(v -> userMapper.toAuthorDto(v.getUser()), Collectors.toList())));
|
||||
p.setOptionParticipants(optionParticipants);
|
||||
p.setMultiple(pp.isMultiple());
|
||||
p.setMultiple(Boolean.TRUE.equals(pp.getMultiple()));
|
||||
dto.setPoll(p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class PollPost extends Post {
|
||||
private Set<User> participants = new HashSet<>();
|
||||
|
||||
@Column
|
||||
private boolean multiple = false;
|
||||
private Boolean multiple = false;
|
||||
|
||||
@Column
|
||||
private LocalDateTime endTime;
|
||||
|
||||
Reference in New Issue
Block a user