diff options
Diffstat (limited to 'model/command.go')
-rw-r--r-- | model/command.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/model/command.go b/model/command.go index 253021896..c917a46ea 100644 --- a/model/command.go +++ b/model/command.go @@ -133,3 +133,12 @@ func (o *Command) PreSave() { func (o *Command) PreUpdate() { o.UpdateAt = GetMillis() } + +func (o *Command) Sanatize() { + o.Token = "" + o.CreatorId = "" + o.Method = "" + o.URL = "" + o.Username = "" + o.IconURL = "" +} |