mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(locker): remove unnecessary assertions for locker_id on BasiliskLocker when saving cards (#1337)
Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
This commit is contained in:
		| @ -262,12 +262,6 @@ pub async fn add_card_hs( | |||||||
|     let db = &*state.store; |     let db = &*state.store; | ||||||
|     let merchant_id = &merchant_account.merchant_id; |     let merchant_id = &merchant_account.merchant_id; | ||||||
|  |  | ||||||
|     let _ = merchant_account |  | ||||||
|         .locker_id |  | ||||||
|         .to_owned() |  | ||||||
|         .get_required_value("locker_id") |  | ||||||
|         .change_context(errors::VaultError::SaveCardFailed)?; |  | ||||||
|  |  | ||||||
|     let request = |     let request = | ||||||
|         payment_methods::mk_add_card_request_hs(jwekey, locker, &card, &customer_id, merchant_id) |         payment_methods::mk_add_card_request_hs(jwekey, locker, &card, &customer_id, merchant_id) | ||||||
|             .await?; |             .await?; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Shankar Singh C
					Shankar Singh C