mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 06:16:02 +08:00
chore: fix linter
This commit is contained in:
parent
51d58d3982
commit
6b14d87521
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ func (s *Store) MigrateWorkspaceSetting(ctx context.Context) error {
|
|||
for _, workspaceSetting := range workspaceSettings {
|
||||
matched := true
|
||||
var baseValue any
|
||||
// nolint
|
||||
json.Unmarshal([]byte(workspaceSetting.Value), &baseValue)
|
||||
if workspaceSetting.Name == "allow-signup" {
|
||||
workspaceGeneralSetting.DisallowSignup = baseValue.(bool)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue