Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Valkenburg committed Jun 13, 2024
1 parent 9e8191c commit 36759a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Talpa Api/Controllers/Api/TagsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TagsController(Context context, IStringLocalizer<LocalizationString
[HttpPost]
public async Task<ActionResult<List<SimilarityCheck.ObjectWithSimilarity>>> CreateTag(string title, bool restrictive, bool overrideSimilarity = false)
{
var similarity = SimilarityCheck.GetObjectWithSimilarity(title, context);
var similarity = SimilarityCheck.GetObjectWithSimilarity(title, context.Tags);

if (similarity.max >= 90) return Conflict(localizer["TagAlreadyExists"].Value);

Expand Down

0 comments on commit 36759a4

Please sign in to comment.