Normalize/downcase query when searching for contrbutors by account #100
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
findByAccount
orfilterByAccount
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.