mirror of
				https://github.com/usememos/memos.git
				synced 2025-11-01 01:06:04 +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 { | 	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) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue