diff options
author | Matias Linares <matiaslina@gmail.com> | 2018-08-04 18:53:09 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2018-08-04 18:53:09 -0300 |
commit | f0d1f4f0f15b8d8b1538c9afb4669627db44113b (patch) | |
tree | 7b80a0210a8c20b1727d6d1e813c93e00d21caf9 /lib/Matrix/Client.pm6 | |
parent | f3f383db83504fd6e921b7899bbe893575625d45 (diff) | |
download | perl6-matrix-client-f0d1f4f0f15b8d8b1538c9afb4669627db44113b.tar.gz |
Fix sync without parameters
Diffstat (limited to 'lib/Matrix/Client.pm6')
-rw-r--r-- | lib/Matrix/Client.pm6 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 0d4f400..1e080bd 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -123,11 +123,11 @@ multi method sync(Hash :$sync-filter is copy, :$since = "") { $.sync(sync-filter => to-json($sync-filter), since => $since) } -multi method sync(Str :$sync-filter, Str :$since = "") { +multi method sync(Str:D :$sync-filter, Str :$since = "") { my $res = $.get("/sync", timeout => 30000, - filter => $sync-filter, - since => $since + :$sync-filter, + :$since ); Matrix::Response::Sync.new($res.content) |