really fix lock

This commit is contained in:
shoopea
2025-12-28 16:32:44 +01:00
parent d92380cccb
commit ee94b077b4
2 changed files with 4 additions and 5 deletions

1
api.go
View File

@@ -219,7 +219,6 @@ func ApiAppAdd(c *gin.Context) {
} }
cfg.Apps = append(cfg.Apps, app) cfg.Apps = append(cfg.Apps, app)
CfgUnlock()
err := cfg.Save(false) err := cfg.Save(false)
if err != nil { if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{ c.JSON(http.StatusInternalServerError, gin.H{

View File

@@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "a1ed103" var githash = "d92380c"
var branch = "master" var branch = "master"
var buildstamp = "2025-12-28_15:30:19" var buildstamp = "2025-12-28_15:32:36"
var commits = "121" var commits = "122"
var version = "a1ed103-b121 - 2025-12-28_15:30:19" var version = "d92380c-b122 - 2025-12-28_15:32:36"