Skip to content

Commit

Permalink
♻️ Supports converting network assets in the database to local #12096
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jul 26, 2024
1 parent 2a7702a commit df8d709
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 231 deletions.
4 changes: 2 additions & 2 deletions kernel/api/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func netAssets2LocalAssets(c *gin.Context) {
}

id := arg["id"].(string)
err := model.NetAssets2LocalAssets(id)
err := model.NetAssets2LocalAssets(id, false, "")
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
Expand All @@ -58,7 +58,7 @@ func netImg2LocalAssets(c *gin.Context) {
if urlArg := arg["url"]; nil != urlArg {
url = urlArg.(string)
}
err := model.NetImg2LocalAssets(id, url)
err := model.NetAssets2LocalAssets(id, true, url)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
Expand Down
Loading

0 comments on commit df8d709

Please sign in to comment.