Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbrzzl committed Aug 8, 2024
1 parent 85fea92 commit dc9fe1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mail/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *ApplicationTestSuite) TestQueueMailWithConnection() {
Attach([]string{"../logo.png"}).
Subject("Goravel Test Queue with connection").
Content(Html("<h1>Hello Goravel</h1>")).
Queue(Query().OnConnection("redis").OnQueue("test")))
Queue(Queue().OnConnection("redis").OnQueue("test")))
time.Sleep(3 * time.Second)
}

Expand Down
2 changes: 1 addition & 1 deletion mail/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type QueueMail struct {
queue *mail.Queue
}

func Query() *QueueMail {
func Queue() *QueueMail {
return &QueueMail{
queue: &mail.Queue{},

Check warning on line 26 in mail/options.go

View check run for this annotation

Codecov / codecov/patch

mail/options.go#L24-L26

Added lines #L24 - L26 were not covered by tests
}
Expand Down

0 comments on commit dc9fe1e

Please sign in to comment.