From 9cd3bb51b9955f083b5bfedf60eb587a991917b0 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Wed, 9 Sep 2020 21:41:34 +0800 Subject: [PATCH] fix: deprecrated conversion from int64 to string --- internal/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client.go b/internal/client.go index 5cb806c..3b48ecf 100644 --- a/internal/client.go +++ b/internal/client.go @@ -195,7 +195,7 @@ func (c *Client) Options(path string) (classes map[string]bool, methods map[stri func (c *Client) SyncCollection(path, syncToken string, level Depth, limit *Limit, prop *Prop) (*Multistatus, error) { q := SyncCollectionQuery{ SyncToken: syncToken, - SyncLevel: string(level), + SyncLevel: level.String(), Limit: limit, Prop: prop, }