Normalize/downcase query when searching for contrbutors by account #100

Open
opened 2019-04-15 10:37:12 +00:00 by bumi · 0 comments
bumi commented 2019-04-15 10:37:12 +00:00 (Migrated from github.com)

The findByAccount or filterByAccount currently use === to compare account details.
In order to support search for lower/uppercase account details we should normalize the query.

https://github.com/67P/kredits-contracts/blob/master/lib/contracts/contributor.js#L44

e.g. simply call toLowerCase() on the data.

The `findByAccount` or `filterByAccount` currently use `===` to compare account details. In order to support search for lower/uppercase account details we should normalize the query. https://github.com/67P/kredits-contracts/blob/master/lib/contracts/contributor.js#L44 e.g. simply call `toLowerCase()` on the data.
raucao added the
enhancement
label 2022-07-16 15:19:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kredits/contracts#100
No description provided.