diff --git a/kernel/api/asset.go b/kernel/api/asset.go index ad8ebbb34..f67c7ad0a 100644 --- a/kernel/api/asset.go +++ b/kernel/api/asset.go @@ -244,6 +244,7 @@ func setFileAnnotation(c *gin.Context) { ret.Msg = err.Error() return } + model.IncSync() } diff --git a/kernel/api/file.go b/kernel/api/file.go index c9f64a4ce..78d37064d 100644 --- a/kernel/api/file.go +++ b/kernel/api/file.go @@ -87,6 +87,8 @@ func globalCopyFiles(c *gin.Context) { return } } + + model.IncSync() } func copyFile(c *gin.Context) { @@ -132,6 +134,8 @@ func copyFile(c *gin.Context) { ret.Data = map[string]interface{}{"closeTimeout": 5000} return } + + model.IncSync() } func getFile(c *gin.Context) { @@ -320,6 +324,8 @@ func renameFile(c *gin.Context) { ret.Msg = err.Error() return } + + model.IncSync() } func removeFile(c *gin.Context) { @@ -357,6 +363,8 @@ func removeFile(c *gin.Context) { ret.Msg = err.Error() return } + + model.IncSync() } func putFile(c *gin.Context) { @@ -442,6 +450,8 @@ func putFile(c *gin.Context) { ret.Msg = err.Error() return } + + model.IncSync() } func millisecond2Time(t int64) time.Time {