mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-14 03:25:52 -05:00
GPCM: Report events for profile actions
This commit is contained in:
@@ -33,5 +33,7 @@ func Start(config common.Config) Connection {
|
||||
}
|
||||
|
||||
func (c *Connection) Close() {
|
||||
c.pool.Close()
|
||||
if c != nil && c.pool != nil {
|
||||
c.pool.Close()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ func (c *Connection) InsertEvent(eventType string, eventData map[string]any) (in
|
||||
return eventId, nil
|
||||
}
|
||||
|
||||
func (c *Connection) RegisterEventLogging(config common.Config, eventTypes []string) {
|
||||
func (c *Connection) RegisterEvents(config common.Config, eventTypes []string) {
|
||||
if !config.EventReporting.LogToDatabase {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ func (c *Connection) LoginUserToGPCM(userId uint64, gsbrcd string, profileId uin
|
||||
}
|
||||
|
||||
logging.Notice("DATABASE", "Created new GPCM user:", aurora.Cyan(userId), aurora.Cyan(gsbrcd), aurora.Cyan(user.ProfileId))
|
||||
user.Created = true
|
||||
} else {
|
||||
var firstName *string
|
||||
var lastName *string
|
||||
|
||||
@@ -38,6 +38,7 @@ type User struct {
|
||||
OpenHost bool
|
||||
LastInGameSn string
|
||||
LastIPAddress string
|
||||
Created bool
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user