Update profile package to changed deps

This commit is contained in:
Daniel
2019-07-02 16:19:47 +02:00
parent 36901e89d8
commit 9636777b30
3 changed files with 3 additions and 7 deletions

View File

@@ -65,11 +65,7 @@ func MakeProfileKey(namespace, ID string) string {
// Save saves the profile to the database
func (profile *Profile) Save(namespace string) error {
if profile.ID == "" {
u, err := uuid.NewV4()
if err != nil {
return err
}
profile.ID = u.String()
profile.ID = uuid.NewV4().String()
}
if !profile.KeyIsSet() {