dashboard: can customize main image background
This commit is contained in:
parent
37dde01444
commit
20dc1f65dc
8 changed files with 29 additions and 4 deletions
|
@ -157,7 +157,7 @@ func saveChallengeInfo(c *gin.Context) {
|
|||
// Ignore the error, try to continue
|
||||
}
|
||||
|
||||
err = sync.ImportChallengeInfo(info)
|
||||
err = sync.ImportChallengeInfo(info, DashboardDir)
|
||||
if err != nil {
|
||||
log.Println("Unable to ImportChallengeInfo:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"errmsg": fmt.Sprintf("Something goes wrong when trying to import related files: %s", err.Error())})
|
||||
|
|
Reference in a new issue