Cache smart playlist refreshes for 5 seconds

This commit is contained in:
Deluan
2021-10-17 22:58:12 -04:00
committed by Deluan Quintão
parent d21932bd1b
commit 21da1df4ea
3 changed files with 22 additions and 10 deletions
+3 -3
View File
@@ -10,8 +10,8 @@ import (
. "github.com/onsi/gomega"
)
var _ = Describe("SmartPlaylist", func() {
var pls SmartPlaylist
var _ = Describe("smartPlaylist", func() {
var pls smartPlaylist
Describe("AddCriteria", func() {
BeforeEach(func() {
sp := model.SmartPlaylist{
@@ -32,7 +32,7 @@ var _ = Describe("SmartPlaylist", func() {
Order: "artist asc",
Limit: 100,
}
pls = SmartPlaylist(sp)
pls = smartPlaylist(sp)
})
It("returns a proper SQL query", func() {