mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
compate DeviceId against void string, not nil
This commit is contained in:
parent
30186a5653
commit
7920a98142
@ -42,7 +42,7 @@ func messageToDomain(input Message) (MessageOut, error) {
|
||||
},
|
||||
CreatedAt: input.CreatedAt,
|
||||
}
|
||||
if len(input.States) > 0 || input.DeviceID != nil {
|
||||
if len(input.States) > 0 || input.DeviceID != "" {
|
||||
state := modelToMessageState(input)
|
||||
out.State = &state
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user