From 9a0754f19f571ca833832258594a71b53adf6df9 Mon Sep 17 00:00:00 2001 From: Adrian-Stefan Mares Date: Wed, 26 Jul 2023 12:13:27 +0200 Subject: [PATCH] is: Fix batch end device delete event name --- config/messages.json | 18 +++++++++--------- pkg/identityserver/end_device_registry.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/messages.json b/config/messages.json index 01acbdd7b5..d0c6069384 100644 --- a/config/messages.json +++ b/config/messages.json @@ -9620,6 +9620,15 @@ "file": "client_registry.go" } }, + "event:end_device.batch.delete": { + "translations": { + "en": "batch delete end devices" + }, + "description": { + "package": "pkg/identityserver", + "file": "end_device_registry.go" + } + }, "event:end_device.create": { "translations": { "en": "create end device" @@ -9926,15 +9935,6 @@ "file": "invitation_registry.go" } }, - "event:is.end_device.batch.delete": { - "translations": { - "en": "batch delete end devices" - }, - "description": { - "package": "pkg/identityserver", - "file": "end_device_registry.go" - } - }, "event:js.end_device.batch.delete": { "translations": { "en": "batch delete end devices" diff --git a/pkg/identityserver/end_device_registry.go b/pkg/identityserver/end_device_registry.go index d21ea2f1cb..d9b90fa39b 100644 --- a/pkg/identityserver/end_device_registry.go +++ b/pkg/identityserver/end_device_registry.go @@ -59,7 +59,7 @@ var ( events.WithPropagateToParent(), ) evtBatchDeleteEndDevices = events.Define( - "is.end_device.batch.delete", "batch delete end devices", + "end_device.batch.delete", "batch delete end devices", events.WithVisibility(ttnpb.Right_RIGHT_APPLICATION_DEVICES_READ), events.WithDataType(&ttnpb.EndDeviceIdentifiersList{}), events.WithAuthFromContext(),