Remove spec playlist constructor

This commit is contained in:
sentriz
2020-06-18 22:55:39 +01:00
parent d944133934
commit 9fc64e1dcb
2 changed files with 7 additions and 19 deletions

View File

@@ -1,16 +0,0 @@
package spec
import (
"go.senan.xyz/gonic/server/db"
)
func NewPlaylist(p *db.Playlist) *Playlist {
return &Playlist{
ID: p.ID,
Name: p.Name,
Comment: p.Comment,
Duration: 1,
Public: true,
Created: p.CreatedAt,
}
}