Skip to content

Commit

Permalink
return confirmed vin userdevice first
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesReate committed Jan 28, 2024
1 parent 44ceb0c commit 32b4bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/rpc/user_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (s *userDeviceRPCServer) GetUserDevice(ctx context.Context, req *pb.GetUser
func (s *userDeviceRPCServer) GetUserDeviceByVIN(ctx context.Context, req *pb.GetUserDeviceByVINRequest) (*pb.UserDevice, error) {
dbDevice, err := models.UserDevices(
models.UserDeviceWhere.VinIdentifier.EQ(null.StringFrom(req.Vin)),
qm.OrderBy("vin_confirmed desc"),
qm.Load(
qm.Rels(models.UserDeviceRels.VehicleNFT,
models.VehicleNFTRels.VehicleTokenAftermarketDevice),
Expand Down

0 comments on commit 32b4bd1

Please sign in to comment.