Skip to content

Commit

Permalink
Remove logger parameter from HBFileIO functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 17, 2024
1 parent 7becd8d commit 583a16b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions upload/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let package = Package(
name: "AppTests",
dependencies: [
.byName(name: "App"),
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "HummingbirdXCT", package: "hummingbird"),
]
),
Expand Down
6 changes: 2 additions & 4 deletions upload/Sources/App/Controllers/FileController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ struct FileController {
try await self.fileIO.writeFile(
contents: request.body,
path: fileURL.path,
context: context,
logger: context.logger
context: context
)
return uploadModel
}
Expand All @@ -66,8 +65,7 @@ struct FileController {
let uploadURL = try uploadModel.destinationURL(allowsOverwrite: true)
let body = try await self.fileIO.loadFile(
path: uploadURL.path,
context: context,
logger: context.logger
context: context
)
return HBResponse(
status: .ok,
Expand Down

0 comments on commit 583a16b

Please sign in to comment.