Skip to content

Commit 260748b

Browse files
Also fix gateway edit + device profile
1 parent 7930765 commit 260748b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/services/chirpstack/chirpstack-gateway.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export class ChirpstackGatewayService extends GenericChirpstackConfigurationServ
9090
Object.entries(dto.gateway.tags).forEach(([key, value]) => {
9191
gatewayChirpstack.getTagsMap().set(key, value.toString());
9292
});
93-
const test = gatewayChirpstack.getTagsMap();
9493

9594
req.setGateway(gatewayChirpstack);
9695

@@ -324,7 +323,7 @@ export class ChirpstackGatewayService extends GenericChirpstackConfigurationServ
324323
const gatewayCs = await this.mapToChirpstackGateway(dto, location, gatewayId);
325324

326325
Object.entries(dto.gateway.tags).forEach(([key, value]) => {
327-
gatewayCs.getTagsMap().set(key, value);
326+
gatewayCs.getTagsMap().set(key, value.toString());
328327
});
329328

330329
request.setGateway(gatewayCs);

src/services/chirpstack/device-profile.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class DeviceProfileService extends GenericChirpstackConfigurationService
5252
const deviceProfile = this.mapToChirpstackDto(dto, true);
5353

5454
Object.entries(dto.deviceProfile.tags).forEach(([key, value]) => {
55-
deviceProfile.getTagsMap().set(key, value);
55+
deviceProfile.getTagsMap().set(key, value.toString());
5656
});
5757

5858
req.setDeviceProfile(deviceProfile);

0 commit comments

Comments
 (0)