From 1015a948fd1f5d54f17c885addd9b5f5159e23da Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 25 Oct 2022 06:29:39 -0700 Subject: [PATCH] =?UTF-8?q?Add=20alias=20for=20WebSocket=20RPC=20method=20?= =?UTF-8?q?=E2=80=98change=E2=80=99=20to=20=E2=80=98merge=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/net/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/rpc.rs b/src/net/rpc.rs index bcf3158c..39523137 100644 --- a/src/net/rpc.rs +++ b/src/net/rpc.rs @@ -279,12 +279,12 @@ impl Rpc { // Update a value or values in the database using `CONTENT` _ => return res::failure(id, Failure::INVALID_PARAMS).send(out, chn).await, }, - "change" => match params.take_two() { (v, o) if v.is_thing() && o.is_none() => rpc.read().await.change(v, None).await, (v, o) if v.is_strand() && o.is_none() => rpc.read().await.change(v, None).await, (v, o) if v.is_thing() && o.is_object() => rpc.read().await.change(v, o).await, (v, o) if v.is_strand() && o.is_object() => rpc.read().await.change(v, o).await, // Update a value or values in the database using `MERGE` + "change" | "merge" => match params.take_two() { _ => return res::failure(id, Failure::INVALID_PARAMS).send(out, chn).await, }, "modify" => match params.take_two() {