fix name not being stored in MeiliIndex when getting from getIndex
This commit is contained in:
parent
7a000e5f3f
commit
7cc69d3617
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ proc createIndex*(meili:Meili, uid:string, primaryKey="id")=
|
|||
proc getIndex*[T](meili:Meili, name:string):MeiliIndex[T]=
|
||||
let resp = meili.fetchc(@["indexes", name])
|
||||
result = fromJson(resp.body, MeiliIndex[T])
|
||||
result.name = name
|
||||
result.client = meili
|
||||
|
||||
proc deleteIndex*(meili:Meili, name:string)=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue