Skip to content

Commit

Permalink
update type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 11, 2024
1 parent 7d5321e commit f3dcbcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/entities/events/base/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func DeleteEvent(db *gorm.DB, id uuid.UUID) error {
return nil
}

func transactionsGetEvents[T any](db *gorm.DB, pageInfo *fiberpaginate.PageInfo, startTime *time.Time, endTime *time.Time) ([]T, error) {
var events []T
func transactionsGetEvents[E any](db *gorm.DB, pageInfo *fiberpaginate.PageInfo, startTime *time.Time, endTime *time.Time) ([]E, error) {
var events []E
query := db.Model(&events)

if startTime != nil && endTime != nil {
Expand Down

0 comments on commit f3dcbcd

Please sign in to comment.