diff options
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/ActivityDao.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/ActivityDao.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/ActivityDao.java index 5a6399040..cc8eed0b0 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/ActivityDao.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/dao/ActivityDao.java @@ -14,6 +14,6 @@ public interface ActivityDao extends GenericDao<Activity> { @Query("SELECT * FROM activity WHERE cardId = :localCardId") LiveData<List<Activity>> getActivitiesForCard(final long localCardId); - @Query("SELECT * FROM activity WHERE accountId = :accountId and id = :remoteActivityId") + @Query("SELECT * FROM activity WHERE accountId = :accountId and id = :remoteActivityId order by lastModified desc") Activity getActivityByRemoteIdDirectly(long accountId, long remoteActivityId); }
\ No newline at end of file |