Fix /list logs not being ordered properly
Variable `j` was used instead of `i`.
This commit is contained in:
parent
bf93d8410c
commit
33c07bf725
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue