Skip to content

Commit

Permalink
fix(search): subject redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 30, 2024
1 parent ab3d60a commit 04497c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/search/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ func (c *client) OnSubjectUpdate(ctx context.Context, id model.SubjectID) error
}

if s.Redirect != 0 {
return nil
return c.DeleteSubject(ctx, id)
}

extracted := extractSubject(&s)

c.queue.Push(extracted)
Expand Down

0 comments on commit 04497c0

Please # to comment.