mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-11 20:45:32 +08:00
Add UDID as a filter to device datastore Devices() so that we can hopefully combine UDID with SerialNumber and abandon GetDeviceByUDID in Acknowledge.
This commit is contained in:
@@ -105,6 +105,15 @@ func (p SerialNumber) where() string {
|
||||
return fmt.Sprintf("serial_number = '%s'", p.SerialNumber)
|
||||
}
|
||||
|
||||
// UDID is a filter
|
||||
type UDID struct {
|
||||
UDID string
|
||||
}
|
||||
|
||||
func (p UDID) where() string {
|
||||
return fmt.Sprintf("udid = '%s'", p.UDID)
|
||||
}
|
||||
|
||||
type pgStore struct {
|
||||
*sqlx.DB
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user