Add bookmark in persistence layer

This commit is contained in:
Deluan
2020-07-31 15:32:08 -04:00
committed by Deluan Quintão
parent 3d4f4b4e2b
commit 2d3ed85311
7 changed files with 172 additions and 25 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func (c *BookmarksController) SavePlayQueue(w http.ResponseWriter, r *http.Reque
}
current := utils.ParamString(r, "current")
position := utils.ParamInt(r, "position", 0)
position := utils.ParamInt64(r, "position", 0)
user, _ := request.UserFrom(r.Context())
client, _ := request.ClientFrom(r.Context())
@@ -59,7 +59,7 @@ func (c *BookmarksController) SavePlayQueue(w http.ResponseWriter, r *http.Reque
pq := &model.PlayQueue{
UserID: user.ID,
Current: current,
Position: float32(position),
Position: position,
ChangedBy: client,
Items: items,
CreatedAt: time.Time{},