make index unique
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 1m1s

This commit is contained in:
Lee 2024-04-25 06:42:26 +01:00
parent de572779e4
commit 9af387ca56

@ -19,7 +19,7 @@ import java.util.List;
* A score for an account.
*/
@Document
@CompoundIndex(name = "accountId_leaderboardId", def = "{'accountId' : 1, 'leaderboardId' : 1}")
@CompoundIndex(name = "accountId_leaderboardId", def = "{'accountId' : 1, 'leaderboardId' : 1}", unique = true)
@AllArgsConstructor @Getter @Setter
public class Score {
/**