Unverified Commit 7f5ecccc authored by Fernando Takagi's avatar Fernando Takagi Committed by GitHub
Browse files

Satori API integration fixes (#1005)

parent f2588f2f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -481,6 +481,7 @@ func NewConfig(logger *zap.Logger) *config {
		Leaderboard:      NewLeaderboardConfig(),
		Matchmaker:       NewMatchmakerConfig(),
		IAP:              NewIAPConfig(),
		Satori:           NewSatoriConfig(),
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ func (s *testSessionRegistry) Add(session Session) {}

func (s *testSessionRegistry) Remove(sessionID uuid.UUID) {}

func (s *testSessionRegistry) Disconnect(ctx context.Context, sessionID uuid.UUID,
func (s *testSessionRegistry) Disconnect(ctx context.Context, sessionID uuid.UUID, ban bool,
	reason ...runtime.PresenceReason) error {
	return nil
}
+1 −1
Original line number Diff line number Diff line
@@ -10107,7 +10107,7 @@ func (n *RuntimeLuaNakamaModule) satoriLiveEventsList(l *lua.LState) int {
		liveEventTable.RawSetString("name", lua.LString(le.Name))
		liveEventTable.RawSetString("value", lua.LString(le.Value))
		liveEventTable.RawSetString("description", lua.LString(le.Description))
		liveEventTable.RawSetString("active_start_time", lua.LString(le.ActiveStartTimeSec))
		liveEventTable.RawSetString("active_start_time", lua.LNumber(le.ActiveStartTimeSec))
		liveEventTable.RawSetString("active_time_end", lua.LNumber(le.ActiveEndTimeSec))

		liveEventTable.RawSetInt(i+1, liveEventTable)