Open matthewcheok opened 1 week ago
@matthewcheok does it work if you change the key paths to
nonisolated(unsafe) static let valueKey = \Token.$value
nonisolated(unsafe) static let userKey = \Token.$user
Unfortunately that does not work.
I'm assuming UserModel
is a sendable model as well? What does the fixit suggest?
Yes it is sendable. It simply suggests removing the nonisolated(unsafe) attribute.
On Sat, Oct 5, 2024 at 7:34 PM Tim Condon @.***> wrote:
I'm assuming UserModel is a sendable model as well? What does the fixit suggest?
— Reply to this email directly, view it on GitHub https://github.com/vapor/fluent/issues/780#issuecomment-2395226296, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCR6LCKVIBIG2HM2P25MPTZ2BZO3AVCNFSM6AAAAABPNSTHZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGIZDMMRZGY . You are receiving this because you were mentioned.Message ID: @.***>
This does look like an issue with ModelTokenAuthenticatable
- I'll see if I can come up with a fix
Describe the issue
I'm getting a compilation error after upgrading to Swift 6.0.1 and Vapor 4.106
Vapor version
4.106.0
Operating system and version
macOS 15.1
Swift version
Swift 6.0.1
Steps to reproduce
Here's the model for my
Token
entity.Outcome
Errors inline
Additional notes
No response