added edit server struct.

This commit is contained in:
5elenay
2021-08-23 15:04:16 +03:00
parent 23077a7b70
commit 1d8511895c
3 changed files with 92 additions and 15 deletions

View File

@@ -158,15 +158,6 @@ func (c *Channel) Edit(ec *EditChannel) error {
return err
}
// Change channel struct
if ec.Name != "" {
c.Name = ec.Name
}
if ec.Description != "" {
c.Description = ec.Description
}
return nil
}