update cn fluent model translation (#743)

This commit is contained in:
JIN 2022-09-27 17:33:26 +08:00 committed by GitHub
parent b7d6f6ff5b
commit 9c8329929c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ struct PlanetMiddleware: ModelMiddleware {
```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 {
// 在创建模型之前,可以在这里修改模型。
model.name = model.name.capitalized()
try await next.create(model, on: db)