mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Move repository model into models/repo (#17933)
* Some refactors related repository model * Move more methods out of repository * Move repository into models/repo * Fix test * Fix test * some improvements * Remove unnecessary function
This commit is contained in:
		| @@ -5,7 +5,6 @@ | ||||
| package oauth2 | ||||
|  | ||||
| import ( | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	"code.gitea.io/gitea/models/login" | ||||
| 	"code.gitea.io/gitea/modules/json" | ||||
| ) | ||||
| @@ -33,7 +32,7 @@ type Source struct { | ||||
|  | ||||
| // FromDB fills up an OAuth2Config from serialized format. | ||||
| func (source *Source) FromDB(bs []byte) error { | ||||
| 	return models.JSONUnmarshalHandleDoubleEncode(bs, &source) | ||||
| 	return json.UnmarshalHandleDoubleEncode(bs, &source) | ||||
| } | ||||
|  | ||||
| // ToDB exports an SMTPConfig to a serialized format. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user