diff --git a/models/utils/abstracts.go b/models/utils/abstracts.go index 2599033..22d80a9 100755 --- a/models/utils/abstracts.go +++ b/models/utils/abstracts.go @@ -150,7 +150,7 @@ func (ao *AbstractObject) UpToDate(user string, peer string, create bool) { ao.UpdateDate = time.Now() ao.UpdaterID = peer ao.UserUpdaterID = user - if create && ao.CreatorID != "" { + if create && ao.CreatorID == "" { ao.CreationDate = time.Now() ao.CreatorID = peer ao.UserCreatorID = user