Fix /list logs not being ordered properly

Variable `j` was used instead of `i`.
This commit is contained in:
Isabel Lomas 2023-05-16 01:11:52 -07:00 committed by GitHub
parent bf93d8410c
commit 33c07bf725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ func (l *FileLogger) GetAvailableLogsForChannel(channelID string) ([]ChannelLogF
yearB, _ := strconv.Atoi(logFiles[j].Year)
monthA, _ := strconv.Atoi(logFiles[i].Month)
monthB, _ := strconv.Atoi(logFiles[j].Month)
dayA, _ := strconv.Atoi(logFiles[j].Day)
dayA, _ := strconv.Atoi(logFiles[i].Day)
dayB, _ := strconv.Atoi(logFiles[j].Day)
if yearA == yearB {