Skip to content

Commit

Permalink
add definition id to proto (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesReate authored Nov 5, 2024
1 parent 3be92a2 commit e8efa44
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 287 deletions.
3 changes: 2 additions & 1 deletion internal/rpc/user_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,12 @@ func (s *userDeviceRPCServer) deviceModelToAPI(ud *models.UserDevice) *pb.UserDe
out := &pb.UserDevice{
Id: ud.ID,
UserId: ud.UserID,
DeviceDefinitionId: ud.DeviceDefinitionID,
DeviceDefinitionId: ud.DeviceDefinitionID, //nolint
DeviceStyleId: ud.DeviceStyleID.Ptr(),
OptedInAt: nullTimeToPB(ud.OptedInAt),
Integrations: make([]*pb.UserDeviceIntegration, len(ud.R.UserDeviceAPIIntegrations)),
VinConfirmed: ud.VinConfirmed,
DefinitionId: ud.DefinitionID,
}

if !ud.TokenID.IsZero() {
Expand Down
Loading

0 comments on commit e8efa44

Please sign in to comment.