Files
haopengzhan f1909da1ad
Go CI / build (push) Failing after 2m42s
Initial commit
feat: create basic server to manage google oauth, account, sessions, places, attributes and ratings.
2025-09-19 02:43:04 -07:00

12 lines
227 B
Go

package store
import "git.pengzhan.dev/noteplace-server/internal/models"
func (s *Store) CreateAttribute(attr models.Attribute) error {
s.Mu.Lock()
defer s.Mu.Unlock()
s.Data.Attributes[attr.ID] = attr
return s.save()
}