Fix lora-adapter event store handlers (#492)

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
This commit is contained in:
Manuel Imperiale 2018-12-05 19:57:23 +01:00 committed by Drasko DRASKOVIC
parent 715a662f0d
commit 61eed0c72d
1 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ func (es eventStore) handleCreateThing(cte createThingEvent) error {
if em.Type != protocol {
return errMetadataType
}
if em.DevEUI != "" {
if em.DevEUI == "" {
return errMetadataDevEUI
}
@ -181,7 +181,7 @@ func (es eventStore) handleUpdateThing(ute updateThingEvent) error {
if em.Type != protocol {
return errMetadataType
}
if em.DevEUI != "" {
if em.DevEUI == "" {
return errMetadataDevEUI
}
@ -201,7 +201,7 @@ func (es eventStore) handleCreateChannel(cce createChannelEvent) error {
if cm.Type != protocol {
return errMetadataType
}
if cm.AppID != "" {
if cm.AppID == "" {
return errMetadataAppID
}
@ -217,7 +217,7 @@ func (es eventStore) handleUpdateChannel(uce updateChannelEvent) error {
if cm.Type != protocol {
return errMetadataType
}
if cm.AppID != "" {
if cm.AppID == "" {
return errMetadataAppID
}