Skip to content

Commit

Permalink
is: Update notification filters to user SupportUserID constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspcr committed Nov 27, 2024
1 parent 00d7033 commit 6d1ebfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/identityserver/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (is *IdentityServer) SendNotificationEmailToUsers(ctx context.Context, noti

// Skips over the possible `support` user.
// This user can only be created via the API endpoints defined in the tenant access service.
if receiver.Ids.IDString() == "support" {
if receiver.Ids.IDString() == ttnpb.SupportUserID {
continue
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/identityserver/notification_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func (is *IdentityServer) notifyAdminsInternal(ctx context.Context, req *ttnpb.C
for i, receiver := range receivers {
// Skips over the possible `support` user.
// This user can only be created via the API endpoints defined in the tenant access service.
if receiver.Ids.IDString() == "support" {
if receiver.Ids.IDString() == ttnpb.SupportUserID {
continue
}
receiverUserIDs[i] = receiver.Ids
Expand Down

0 comments on commit 6d1ebfd

Please sign in to comment.