Update folder sync time

This commit is contained in:
M66B
2022-05-02 15:23:16 +02:00
parent 01bacf0941
commit e4ec7e41e3
4 changed files with 20 additions and 13 deletions

View File

@@ -273,6 +273,11 @@ public interface DaoFolder {
@Query("UPDATE folder SET total = :total WHERE id = :id AND NOT (total IS :total)")
int setFolderTotal(long id, Integer total);
@Query("UPDATE folder SET total = :total, last_sync = :last_sync" +
" WHERE id = :id" +
" AND NOT (total IS :total AND last_sync IS :last_sync)")
int setFolderTotal(long id, Integer total, Long last_sync);
@Query("UPDATE folder SET error = :error WHERE id = :id AND NOT (error IS :error)")
int setFolderError(long id, String error);