Actually include some fields in ackQueryResponses when fetching a Device to fix device query response update.

This commit is contained in:
Mosen
2016-06-25 22:02:47 +10:00
parent 00c8c9247f
commit e0aa275058

View File

@@ -83,7 +83,7 @@ func (svc service) checkRequeue(deviceUDID string) (int, error) {
// Acknowledge Queries sent with DeviceInformation command
func (svc service) ackQueryResponses(req mdm.Response) error {
existing, err := svc.devices.GetDeviceByUDID(req.UDID)
existing, err := svc.devices.GetDeviceByUDID(req.UDID, []string{"device_uuid", "serial_number"}...)
if err != nil {
return err
}