RefractorGSCM / Refractor

An open-source game server community manager built with Go.

Home Page:https://refractor.dmas.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal error on viewing users with no linked players

dsnidr opened this issue · comments

Steps to Reproduce

  1. Create some users
  2. Link some users and not others
  3. Reload
  4. View players with no linked players
  5. Error is displayed

Cause

This appears to be a scan error from a nil timestamp (modifiedat) into a time.Time field.

In the postgres user repo, GetLinkedPlayers initially scans right into a domain.Player struct while it should be scanning into a domain.DBPlayer struct.