Skip to content

Commit

Permalink
Add unchecked sendable to Todo (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannflor authored Apr 29, 2024
1 parent 0720a2f commit 3e6e600
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/App/Models/Todo.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import Fluent
import Vapor

final class Todo: Model, Content {
/// Property wrappers interact poorly with `Sendable` checking, causing a warning for the `@ID` property
/// It is recommended you write your model with sendability checking on and then suppress the warning
/// afterwards with `@unchecked Sendable`.
final class Todo: Model, Content, @unchecked Sendable {
static let schema = "todos"

@ID(key: .id)
Expand Down

0 comments on commit 3e6e600

Please sign in to comment.