Skip to content

Commit

Permalink
fix: Fixing reduced scope share on the pubsub
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Dec 31, 2023
1 parent f1429bc commit cc20a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/share/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (s *Service) UpdatePassword(ctx context.Context, id, password string) error
return fmt.Errorf("save shares: %w", err)
}

if err := s.redisClient.PublishJSON(ctx, s.pubsubChannel, provider.Share{ID: id}); err != nil {
if err := s.redisClient.PublishJSON(ctx, s.pubsubChannel, share); err != nil {
return fmt.Errorf("publish share deletion: %w", err)
}

Expand Down

0 comments on commit cc20a6f

Please sign in to comment.