Skip to content

Commit 9559cc9

Browse files
committed
[webhooks] service minor fixes
1 parent 3a499ef commit 9559cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sms-gateway/modules/webhooks/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (s *Service) Replace(userID string, webhook smsgateway.Webhook) error {
8282
return fmt.Errorf("failed to select devices: %w", err)
8383
}
8484
if !ok {
85-
return fmt.Errorf("device not found or not owned by user")
85+
return devices.ErrNotFound
8686
}
8787
}
8888

0 commit comments

Comments
 (0)