Skip to content

Commit

Permalink
fix(models/driver): fix role parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Sep 5, 2024
1 parent 6751d1c commit 8bf5bc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/placeos/api/models/driver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ module PlaceOS::Client::API::Models
getter default_uri : String
getter default_port : Int32

getter role : Role
getter role : Int32

def role : Role
Role.from_value(@role)
end

# Driver version management

Expand Down

0 comments on commit 8bf5bc3

Please sign in to comment.