Skip to content

Commit

Permalink
rename i ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 13, 2024
1 parent bb65493 commit 0c44fdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/entities/events/previews/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func GetEventPreviewsByTime(db *gorm.DB, pageInfo *fiberpaginate.PageInfo, start

func processEventStubs(db *gorm.DB, events []EventStub) ([]EventPreview, error) {
eventIDs := make([]uuid.UUID, len(events))
for i, event := range events {
eventIDs[i] = event.ID
for index, event := range events {
eventIDs[index] = event.ID
}

var eventTags []struct {
Expand Down Expand Up @@ -81,8 +81,8 @@ func processEventStubs(db *gorm.DB, events []EventStub) ([]EventPreview, error)
}

eventPreviews := make([]EventPreview, len(events))
for i, event := range events {
eventPreviews[i] = *event.Into(eventTagsMap[event.ID], hostsMap[event.Host].Name, hostsMap[event.Host].Logo)
for index, event := range events {
eventPreviews[index] = *event.Into(eventTagsMap[event.ID], hostsMap[event.Host].Name, hostsMap[event.Host].Logo)
}

return eventPreviews, nil
Expand Down

0 comments on commit 0c44fdf

Please sign in to comment.