Added lastPlay info in queue model

This commit is contained in:
CappielloAntonio 2021-08-12 17:56:03 +02:00
parent 4adde9e951
commit 76f4f1d021
6 changed files with 44 additions and 3 deletions

View file

@ -29,4 +29,7 @@ public interface QueueDao {
@Query("SELECT COUNT(*) FROM queue")
int count();
@Query("UPDATE queue SET last_play=:timestamp WHERE id=:id")
void setLastPlay(String id, long timestamp);
}