Minor hashes refactoring

This commit is contained in:
Šesták Vít
2017-06-19 13:09:17 +02:00
parent e732e2fbb9
commit 2d0651cfc7
4 changed files with 7 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ object QueryBinders {
str => str.split('-') match {
case Array(sha1, md5) => Hashes(sha1 = sha1, md5 = md5)
},
hashes => s"${hashes.sha1}-${hashes.md5}"
hashes => hashes.serialized
)
implicit object MapStringIntJavascriptLiteral extends JavascriptLiteral[Map[String, Int]] {