Skip to content

Commit

Permalink
fix(notify): Fixed the problem that timeout requests still be notifie…
Browse files Browse the repository at this point in the history
…d to players.
  • Loading branch information
CarmJos committed Dec 1, 2023
1 parent ff23c0d commit 6ae6bd1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
</parent>
<properties>
<maven.compiler.source>${project.jdk.version}</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
</parent>
<properties>
<maven.compiler.source>${project.jdk.version}</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion game/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion game/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.artformgames.plugin.votepass.api.data.request.RequestInformation;
import com.artformgames.plugin.votepass.api.data.vote.VoteInformation;
import com.artformgames.plugin.votepass.api.user.UserKey;
import com.artformgames.plugin.votepass.core.conf.CommonConfig;
import com.artformgames.plugin.votepass.core.user.AbstractUserData;
import com.artformgames.plugin.votepass.game.Main;
import com.artformgames.plugin.votepass.game.VotePassServerAPI;
Expand Down Expand Up @@ -33,8 +34,10 @@ public GameUser(@NotNull UserKey key) {

@Override
public int countUnvotedRequest() {
return (int) VotePassServerAPI.getVoteManager().getRequests().values()
.stream().filter(value -> !value.isVoted(key)).count();
return (int) VotePassServerAPI.getVoteManager().getRequests().values().stream()
.filter(v -> !v.isTimeout(CommonConfig.TIME.AUTO_CLOSE.getNotNull()))
.filter(value -> !value.isVoted(key))
.count();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion lobby/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion lobby/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</properties>
<groupId>com.artformgames</groupId>
<artifactId>votepass-parent</artifactId>
<version>1.2.4</version>
<version>1.2.5</version>
<modules>
<module>api</module>
<module>lobby/api</module>
Expand Down

0 comments on commit 6ae6bd1

Please sign in to comment.