mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix query for oldest (un-swapped) project
This commit is contained in:
parent
9170f6fdb3
commit
49aa2ef845
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ public class GetOldestProjectName implements SQLQuery<String> {
|
||||||
|
|
||||||
private static final String GET_OLDEST_PROJECT_NAME =
|
private static final String GET_OLDEST_PROJECT_NAME =
|
||||||
"SELECT `name`, MIN(`last_accessed`)\n" +
|
"SELECT `name`, MIN(`last_accessed`)\n" +
|
||||||
" FROM `projects`";
|
" FROM `projects` \n" +
|
||||||
|
" WHERE `last_accessed` IS NOT NULL;";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSQL() {
|
public String getSQL() {
|
||||||
|
|
Loading…
Reference in a new issue