mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-12 23:14:36 +01:00
chore: Fix formatting
This commit is contained in:
@@ -220,7 +220,7 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) {
|
||||
}
|
||||
|
||||
// Calculate the rotation time based on start time, active duration, and inactive duration
|
||||
rotationTime := startTime.Add(time.Duration(activeDuration+inactiveDuration) * 24 * time.Hour)
|
||||
rotationTime := startTime.Add((time.Duration(activeDuration+inactiveDuration) * 24) * time.Hour)
|
||||
if currentTime.After(rotationTime) {
|
||||
// The rotation time has passed, update the start time and reset the rotation
|
||||
_, err := transaction.Exec("UPDATE event_quests SET start_time = $1 WHERE quest_id = $2", rotationTime, questId)
|
||||
|
||||
Reference in New Issue
Block a user