api: fix mongo indexes
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 32s

This commit is contained in:
Lee 2024-08-02 18:02:43 +01:00
parent 96f62d9a01
commit 66d29c343e
2 changed files with 2 additions and 1 deletions

@ -7,6 +7,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Reference;
import org.springframework.data.mongodb.core.index.Indexed; import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
@ -102,6 +103,7 @@ public class Score {
/** /**
* The score history for map the score was set on. * The score history for map the score was set on.
*/ */
@Reference
private List<Score> previousScores; private List<Score> previousScores;
/** /**

@ -13,7 +13,6 @@ import java.util.List;
* @author Fascinated (fascinated7) * @author Fascinated (fascinated7)
*/ */
public interface ScoreRepository extends MongoRepository<Score, String> { public interface ScoreRepository extends MongoRepository<Score, String> {
/** /**
* Gets the top ranked scores from the platform. * Gets the top ranked scores from the platform.
* *