mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 04:55:39 +08:00
Change type assertion in DEPProfileStatus.Scan() to string.
This commit is contained in:
@@ -71,7 +71,7 @@ func (status *DEPProfileStatus) Scan(value interface{}) error {
|
||||
return nil
|
||||
}
|
||||
if sv, err := driver.String.ConvertValue(value); err == nil {
|
||||
if v, ok := sv.([]byte); ok {
|
||||
if v, ok := sv.(string); ok {
|
||||
*status = DEPProfileStatus(v)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user