Commit fef8b62f authored by Kegan's avatar Kegan
Browse files

updated database version

parent 3f88a8f2
......@@ -16,7 +16,6 @@ import (
"gitlab.desolationredux.com/DayZ/DayZBR-Mod/Service/discord-bot/discord"
"gitlab.desolationredux.com/DayZ/DayZBR-Mod/Service/steam-query/steamquery"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
)
......@@ -127,8 +126,6 @@ func (c *Client) Start(w http.ResponseWriter, r *http.Request) {
plr, err = c.Db.InsertPlayer(&database.BRPlayer{
Name: req.Name,
SteamId: req.SteamId,
MatchIds: make([]primitive.ObjectID, 0),
Rating: 1000,
Ips: []string{ip},
Purchases: make([]string, 0),
})
......@@ -330,7 +327,7 @@ func (c *Client) GetMatch(w http.ResponseWriter, r *http.Request) {
return
}
match, err := c.Db.GetMatchByID(req.MatchId)
match, err := c.Db.GetRawMatchByID(req.MatchId)
if err != nil {
c.Log.Errorln("Match id not found", err)
json.NewEncoder(w).Encode(buildErrorResponse("invalid request"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment