Skip to content

Commit

Permalink
Fix Typo LANGUAGE_FIELD->LANGUAGE in SerializeIndex (#458)
Browse files Browse the repository at this point in the history
* Fix SerializeIndex

Fix type/bug in index serialization and creation which serializes `LanguageField` to `Language` instead of `Language_Field`

* adding author to readme

---------

Co-authored-by: slorello89 <steve.lorello@redis.com>
  • Loading branch information
ahmedisam99 and slorello89 authored Jul 12, 2024
1 parent cd6efb6 commit b854ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ We'd love your contributions! If you want to contribute please read our [Contrib
* [@abbottdev](https://github.com/abbottdev)
* [@PrudiusVladislav](https://github.com/PrudiusVladislav)
* [@CormacLennon](https://github.com/CormacLennon)
* [@ahmedisam99](https://github.com/ahmedisam99)

<!-- Logo -->
[Logo]: images/logo.svg
Expand Down
2 changes: 1 addition & 1 deletion src/Redis.OM/Modeling/RedisIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ internal static string[] SerializeIndex(this Type type)

if (!string.IsNullOrEmpty(objAttribute.LanguageField))
{
args.Add("LANGUAGE");
args.Add("LANGUAGE_FIELD");
args.Add(objAttribute.LanguageField!);
}

Expand Down

0 comments on commit b854ba7

Please sign in to comment.