Remove default stuff from models
This commit is contained in:
parent
a943f229e6
commit
3f5df241db
2 changed files with 3 additions and 27 deletions
|
@ -3,7 +3,6 @@ package models
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
"git.mstar.dev/mstar/linstrom/config"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -18,17 +17,3 @@ type RemoteServer struct {
|
|||
IconId sql.NullString // ID of a media file
|
||||
IsSelf bool // Whether this server is yours truly
|
||||
}
|
||||
|
||||
func BuildDefaultServer() *RemoteServer {
|
||||
return &RemoteServer{
|
||||
Model: gorm.Model{
|
||||
ID: 1,
|
||||
},
|
||||
ServerType: ServerSoftwareLinstrom,
|
||||
Domain: config.GlobalConfig.General.GetFullDomain(),
|
||||
Name: config.GlobalConfig.Self.ServerDisplayName,
|
||||
Icon: &DefaultDuckMedia,
|
||||
IconId: sql.NullString{String: DefaultDuckMedia.ID, Valid: true},
|
||||
IsSelf: true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue