Add attribute for default privacy to verify credentials (#4075)
* Add attribute for default privacy to verify credentials * add raw_note * source
This commit is contained in:
		
							parent
							
								
									4122a837fa
								
							
						
					
					
						commit
						f8212da329
					
				
					 2 changed files with 15 additions and 2 deletions
				
			
		|  | @ -6,13 +6,13 @@ class Api::V1::Accounts::CredentialsController < Api::BaseController | |||
| 
 | ||||
|   def show | ||||
|     @account = current_account | ||||
|     render json: @account, serializer: REST::AccountSerializer | ||||
|     render json: @account, serializer: REST::CredentialAccountSerializer | ||||
|   end | ||||
| 
 | ||||
|   def update | ||||
|     current_account.update!(account_params) | ||||
|     @account = current_account | ||||
|     render json: @account, serializer: REST::AccountSerializer | ||||
|     render json: @account, serializer: REST::CredentialAccountSerializer | ||||
|   end | ||||
| 
 | ||||
|   private | ||||
|  |  | |||
		Reference in a new issue