fix: fail to create config #724 #720

This commit is contained in:
Jacky 2024-11-15 19:30:03 +08:00
parent 56e82d9c5a
commit a2c0e804a4
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
5 changed files with 19 additions and 25 deletions

View file

@ -22,7 +22,6 @@ type EditConfigJson struct {
func EditConfig(c *gin.Context) {
relativePath := c.Param("path")
var json struct {
Name string `json:"name" binding:"required"`
Content string `json:"content"`
SyncOverwrite bool `json:"sync_overwrite"`
SyncNodeIds []uint64 `json:"sync_node_ids"`