finish setup insert method, refactor sql migration file

This commit is contained in:
lbenedar
2026-04-17 17:33:21 +03:00
parent 1b7c7e9ae3
commit 21abe68858
47 changed files with 2054 additions and 1056 deletions

View File

@@ -6,12 +6,16 @@ type Style struct {
Src string `json:"src"`
}
func (s *Style) ToDB(dest *db.Style) bool {
func (s *Style) ToDB(dest **db.Style) bool {
if dest == nil {
return false
}
dest.Src = s.Src
style := &db.Style{
Src: s.Src,
}
*dest = style
return true
}