mirror of https://github.com/vapor/docs.git
Translate #741 to dutch
This commit is contained in:
parent
e4573e4e13
commit
813f67f1ee
|
|
@ -565,7 +565,7 @@ of als je `async`/`await` gebruikt:
|
|||
|
||||
```swift
|
||||
struct PlanetMiddleware: AsyncModelMiddleware {
|
||||
func create(model: Planet, on db: Database, next: AnyModelResponder) async throws {
|
||||
func create(model: Planet, on db: Database, next: AnyAsyncModelResponder) async throws {
|
||||
// Het model kan hier worden gewijzigd voordat het wordt gemaakt.
|
||||
model.name = model.name.capitalized()
|
||||
try await next.create(model, on: db)
|
||||
|
|
|
|||
Loading…
Reference in New Issue