Add TODO to retrieving the current timestamp.

This commit is contained in:
takezoe
2013-06-23 03:06:22 +09:00
parent bc607661a9
commit 7b8edb3ec4
5 changed files with 9 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ trait AccountService {
account.lastLoginDate)
def updateLastLoginDate(userName: String): Unit =
// TODO make a common function to get the current timestamp.
Query(Accounts).filter(_.userName is userName.bind).map(_.lastLoginDate)
.update(new java.sql.Timestamp(System.currentTimeMillis))