mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix linter
This commit is contained in:
@@ -25,6 +25,7 @@ func (s *Store) MigrateWorkspaceSetting(ctx context.Context) error {
|
|||||||
for _, workspaceSetting := range workspaceSettings {
|
for _, workspaceSetting := range workspaceSettings {
|
||||||
matched := true
|
matched := true
|
||||||
var baseValue any
|
var baseValue any
|
||||||
|
// nolint
|
||||||
json.Unmarshal([]byte(workspaceSetting.Value), &baseValue)
|
json.Unmarshal([]byte(workspaceSetting.Value), &baseValue)
|
||||||
if workspaceSetting.Name == "allow-signup" {
|
if workspaceSetting.Name == "allow-signup" {
|
||||||
workspaceGeneralSetting.DisallowSignup = baseValue.(bool)
|
workspaceGeneralSetting.DisallowSignup = baseValue.(bool)
|
||||||
|
Reference in New Issue
Block a user