Selaa lähdekoodia

Modify visibility of variables in l10n config

Chenyang 1 vuosi sitten
vanhempi
commit
640c5e52bf
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      l10n/views/config.go

+ 3 - 3
l10n/views/config.go

@@ -67,15 +67,15 @@ func Configure(b *presets.Builder, db *gorm.DB, lb *l10n.Builder, ab *activity.A
 			if err = deleter(obj, id, ctx); err != nil {
 				return
 			}
-			Locale := obj.(presets.SlugDecoder).PrimaryColumnValuesBySlug(id)["locale_code"]
-			Locale = fmt.Sprintf("%s(del:%d)", Locale, time.Now().UnixMilli())
+			locale := obj.(presets.SlugDecoder).PrimaryColumnValuesBySlug(id)["locale_code"]
+			locale = fmt.Sprintf("%s(del:%d)", locale, time.Now().UnixMilli())
 
 			withoutKeys := []string{}
 			if ctx.R.URL.Query().Get("all_versions") == "true" {
 				withoutKeys = append(withoutKeys, "version")
 			}
 
-			if err = utils.PrimarySluggerWhere(db.Unscoped(), obj, id, withoutKeys...).Update("locale_code", Locale).Error; err != nil {
+			if err = utils.PrimarySluggerWhere(db.Unscoped(), obj, id, withoutKeys...).Update("locale_code", locale).Error; err != nil {
 				return
 			}
 			return