cli: fix rad inbox clear output
If multiple ids are specified for rad inbox clear, it would report
that only 1 item was cleared, when in fact multiple were.
This was found to be due to the SQL code returning a change count of
1. This is likely due to the way the statement is being reset each
time. The sqlite library does not seem to easily support the usage
of IN in a WHERE clause. So instead, the count is aggregated in
the loop and returned instead.
2 files changed
+6
-2
8bf87190
→
35567583
modified radicle-cli/examples/rad-inbox.md
@@ -85,7 +85,7 @@ $ rad inbox show 1
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/node/notifications/store.rs
@@ -196,12 +196,16 @@ impl Store<Write> {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|