dont insert if no need

This commit is contained in:
sentriz
2019-05-13 23:28:53 +01:00
parent 5ac21cb852
commit bd95806a23
5 changed files with 82 additions and 40 deletions

View File

@@ -56,8 +56,9 @@ type Track struct {
type Cover struct {
IDBase
CrudBase
Image []byte
Path string `gorm:"not null;unique_index"`
Image []byte
Path string `gorm:"not null;unique_index"`
NewlyInserted bool `gorm:"-"`
}
// User represents the users table