mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Minor refactorings
This commit is contained in:
@ -141,7 +141,7 @@ object RegexNerFile {
|
||||
|
||||
def latestUpdate(collective: Ident): ConnectionIO[Option[Timestamp]] = {
|
||||
def max_(col: Column[_], cidCol: Column[Ident]): Select =
|
||||
Select(List(max(col).as("t")), from(col.table), cidCol === collective)
|
||||
Select(max(col).as("t"), from(col.table), cidCol === collective)
|
||||
|
||||
val sql = union(
|
||||
max_(ROrganization.T.updated, ROrganization.T.cid),
|
||||
|
Reference in New Issue
Block a user