Remove spec playlist constructor
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user