fix fetch in getIndex
This commit is contained in:
parent
68a2745644
commit
9a5b26c1c3
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ proc createIndex*(meili:Meili, uid:string, primaryKey="id")=
|
|||
discard fetchc(meili, @["indexes"], "post", $(%* {"uid":uid, "primaryKey":primaryKey}))
|
||||
|
||||
proc getIndex*[T](meili:Meili, name:string):MeiliIndex[T]=
|
||||
let resp = meili.fetch([name])
|
||||
let resp = meili.fetchc(@[name])
|
||||
fromJson(resp.body, MeiliIndex[T])
|
||||
|
||||
proc deleteIndex*(meili:Meili, name:string)=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue