Fix GetNowPlaying endpoint showing only the last play
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ import (
|
||||
type Player struct {
|
||||
ID string `json:"id" orm:"column(id)"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
UserAgent string `json:"userAgent"`
|
||||
UserName string `json:"userName"`
|
||||
Client string `json:"client"`
|
||||
IPAddress string `json:"ipAddress"`
|
||||
@@ -21,6 +21,6 @@ type Players []Player
|
||||
|
||||
type PlayerRepository interface {
|
||||
Get(id string) (*Player, error)
|
||||
FindByName(client, userName string) (*Player, error)
|
||||
FindMatch(userName, client, typ string) (*Player, error)
|
||||
Put(p *Player) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user