Fix: timer update [WIP]
This commit is contained in:
		| @@ -23,7 +23,7 @@ func StartTurnTimer(roomID string, timeLeft uint32) { | ||||
| 		if err := repo.RoomUpdate(context.Background(), room); err != nil { | ||||
| 			logger.Error("failed to save room", "error", err) | ||||
| 		} | ||||
| 		notify(models.NotifyTurnTimerPrefix+room.ID, strconv.FormatUint(uint64(room.Settings.RoundTime), 10)) | ||||
| 		// notify(models.NotifyTurnTimerPrefix+room.ID, strconv.FormatUint(uint64(room.Settings.RoundTime), 10)) | ||||
| 		notifyBotIfNeeded(room) | ||||
| 	} | ||||
|  | ||||
| @@ -31,7 +31,7 @@ func StartTurnTimer(roomID string, timeLeft uint32) { | ||||
| 		notify(models.NotifyTurnTimerPrefix+roomID, strconv.FormatUint(uint64(currentLeft), 10)) | ||||
| 	} | ||||
|  | ||||
| 	timer.StartTurnTimer(context.Background(), roomID, timeLeft, onTurnEnd, onTick, logger) | ||||
| 	timer.StartTurnTimer(context.Background(), roomID, int32(timeLeft), onTurnEnd, onTick, logger) | ||||
| } | ||||
|  | ||||
| func StopTurnTimer(roomID string) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder