fix addDocuments
This commit is contained in:
parent
9a5b26c1c3
commit
4c77cdd3ed
1 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ type
|
|||
MeiliIndex*[T] = object
|
||||
client:Meili
|
||||
name:string
|
||||
createdAt, updatedAt:MeiliTIme
|
||||
createdAt, updatedAt:MeiliTime
|
||||
primaryKey*:string
|
||||
kind*:T
|
||||
|
||||
|
|
@ -124,7 +124,7 @@ proc updatedAt*(index:MeiliIndex):DateTime=
|
|||
parseMeiliTime(index.updatedAt)
|
||||
|
||||
proc addDocuments*[T](index:MeiliIndex[T], documents:string)=
|
||||
discard fetchc(index.client, ["indexes", index.name, "documents"], "post", documents)
|
||||
discard fetchc(index.client, @["indexes", index.name, "documents"], "post", documents)
|
||||
|
||||
proc addDocuments*[T](index:MeiliIndex[T], documents:seq[JsonNode])=
|
||||
addDocuments(index, $(%documents))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue