not require UserAgent

This commit is contained in:
Hoang 2021-12-10 14:58:55 +07:00
parent 43fc966f9a
commit c67099df03
1 changed files with 0 additions and 16 deletions

View File

@ -16,14 +16,6 @@ func (co CreateOptions) validate() error {
return errors.New("no deviceID data") return errors.New("no deviceID data")
} }
// UserAgent
if co.UserAgent == "" {
logger.Error("devicemngmt - Create: no userAgent data", logger.LogData{
"payload": co,
})
return errors.New("no userAgent data")
}
// IP // IP
if co.IP == "" { if co.IP == "" {
logger.Error("devicemngmt - Create: no ip data", logger.LogData{ logger.Error("devicemngmt - Create: no ip data", logger.LogData{
@ -66,14 +58,6 @@ func (uo UpdateOptions) validate() error {
return errors.New("invalid userID data") return errors.New("invalid userID data")
} }
// UserAgent
if uo.UserAgent == "" {
logger.Error("devicemngmt - Update: no userAgent data", logger.LogData{
"payload": uo,
})
return errors.New("no userAgent data")
}
// IP // IP
if uo.IP == "" { if uo.IP == "" {
logger.Error("devicemngmt - Update: no ip data", logger.LogData{ logger.Error("devicemngmt - Update: no ip data", logger.LogData{