Skip to content

Commit

Permalink
Merge pull request #37 from vapor-community/vapor4-release
Browse files Browse the repository at this point in the history
Update to Vapor 4 release
  • Loading branch information
Andrewangeta authored Apr 10, 2020
2 parents e32f5a1 + 6bf9887 commit c744bc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import PackageDescription

let package = Package(
name: "SendGrid",
name: "sendgrid",
platforms: [
.macOS(.v10_15)
],
products: [
.library(name: "SendGrid", targets: ["SendGrid"])
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0-rc"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/vapor-community/sendgrid-kit.git", from: "1.0.0"),
],
targets: [
Expand Down
4 changes: 3 additions & 1 deletion Sources/SendGrid/Application+SendGrid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ extension Application {

fileprivate let application: Application

public var client: SendGridClient { .init(httpClient: self.application.client.http, apiKey: self.storage.apiKey) }
public var client: SendGridClient {
.init(httpClient: self.application.http.client.shared, apiKey: self.storage.apiKey)
}
}

public var sendgrid: Sendgrid { .init(application: self) }
Expand Down

0 comments on commit c744bc4

Please sign in to comment.