mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 21:35:40 +08:00
move MDM types to micromdm/micromdm (#341)
Previously the github.com/micromdm/mdm library was used, but the code there was a bit naive and had a few issues as it grew to support the full library of MDM Commands. All the request types have been moved to `package mdm`.
This commit is contained in:
@@ -204,9 +204,9 @@ func (db *Store) pollCommands(pubsub pubsub.PublishSubscriber) error {
|
||||
if err == nil && byUDID != nil {
|
||||
cmd = byUDID
|
||||
}
|
||||
newPayload, err := plist.Marshal(&ev.Payload)
|
||||
newPayload, err := plist.Marshal(ev.Payload)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
fmt.Println(errors.Wrap(err, "marshal event payload"))
|
||||
continue
|
||||
}
|
||||
newCmd := Command{
|
||||
|
||||
Reference in New Issue
Block a user