Add RepositoryService#updateLastActivityDate().

This commit is contained in:
takezoe
2013-06-04 14:04:36 +09:00
parent 5793851b7d
commit 0c18671eb2

View File

@@ -104,10 +104,14 @@ trait RepositoryService { self: AccountService =>
}
/**
* TODO Updates the last activity date of the repository.
* Updates the last activity date of the repository.
*/
def updateLastActivityDate(userName: String, repositoryName: String): Unit = {
val q = for {
r <- Repositories if (r.userName is userName.bind) && (r.repositoryName is repositoryName.bind)
} yield r.lastActivityDate
q.update(new java.sql.Date(System.currentTimeMillis))
}
/**