Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
118: queryRecords should return [] when no matching records exist, no…
…t an error (#121) Whenever a key is used which doesn't exist in the DB at all, an error is returned like this: ``` [ { message: `rpc error: code = Unknown desc = store doesn't have key: "\\atypeApplicationRecord"`, path: [ 'queryRecords' ] } ] ``` That doesn't make any sense, as it is not an error to find out that the thing you asked for does not exist. This changes it to return an empty list. Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/121 Reviewed-by: David Boreham <[email protected]> Co-authored-by: Thomas E Lackey <[email protected]> Co-committed-by: Thomas E Lackey <[email protected]>
- Loading branch information