You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a few spots that use Int64 and assumes that is the User's ID type, but we can use User::PrimaryKeyType instead which will resolve as Int64 or UUID... or really whatever you're using.
The text was updated successfully, but these errors were encountered:
Taking a look at this one doesn't seem to be as straight forward as just using that type all over. There's a few spots where we treat the id as a String, then cast it with to_i64. My first thought is we'd need some sort of cast_to_primary_key type method which could have string.to_i64, then just have 1 spot you change this and it works everywhere...
Then again... I know you can do .id("4") in Avram, and it handles it on its own.. Maybe we just allow the String version to be passed around since that works for both Ints and UUID?
If anyone else wants to look in to this, here's a few of the files that need looking at. I may have missed some
There's a few spots that use Int64 and assumes that is the User's ID type, but we can use
User::PrimaryKeyType
instead which will resolve as Int64 or UUID... or really whatever you're using.The text was updated successfully, but these errors were encountered: