Fix the index page.

This commit is contained in:
takezoe
2013-06-03 01:36:35 +09:00
parent 1ab58d0363
commit b2af70d611
6 changed files with 45 additions and 13 deletions

View File

@@ -6,6 +6,10 @@ import Database.threadLocalSession
trait AccountService {
def getAccountByUserId(userId: Long): Option[Account] =
Query(Accounts) filter(_.userId is userId.bind) firstOption
def getAccountByUserName(userName: String): Option[Account] =
Query(Accounts) filter(_.userName is userName.bind) firstOption