use player_id for session instead of UID. add build dockerfile

This commit is contained in:
2023-10-07 22:56:32 -07:00
parent 796f2e6818
commit 5dc3b5cb03
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
# build Golang app for Linux
FROM golang:1.20
WORKDIR /app
# get gcc-multilib and gcc-mingw-w64
RUN apt update
RUN apt install -y gcc-multilib gcc-mingw-w64
CMD ["/bin/sh"]

View File

@@ -313,8 +313,8 @@ func writeAttendance(data string) {
var dbEvent Session
db.Client().
Where(
"player_uid = ? AND mission_hash = ?",
event.PlayerUID,
"player_id = ? AND mission_hash = ?",
event.PlayerId,
event.MissionHash,
).
Order("join_time_utc desc").