Closed anonymouz4 closed 2 years ago
@ID(key: .id) var id: UUID?
When not initializing the ID field in a model, and then calling try account?.requireID(), the following error gets thrown:
try account?.requireID()
{"error":true,"reason":"server: invalid input syntax for type uuid: \"Optional(4C16EB46-5CFD-46B5-88D7-5917970F1E2A)\" (string_to_uuid)"}
Somehow the ID got optional and did not get unwrapped
Not a bug, happened due to an external library. This can be deleted.
@ID(key: .id) var id: UUID?
When not initializing the ID field in a model, and then calling
try account?.requireID()
, the following error gets thrown:{"error":true,"reason":"server: invalid input syntax for type uuid: \"Optional(4C16EB46-5CFD-46B5-88D7-5917970F1E2A)\" (string_to_uuid)"}
Somehow the ID got optional and did not get unwrapped