mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor: rename s3 feature flag to aws_s3 (#3341)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
pub mod helpers;
|
||||
#[cfg(feature = "s3")]
|
||||
#[cfg(feature = "aws_s3")]
|
||||
pub mod s3_utils;
|
||||
|
||||
#[cfg(not(feature = "s3"))]
|
||||
#[cfg(not(feature = "aws_s3"))]
|
||||
pub mod fs_utils;
|
||||
|
||||
use api_models::files;
|
||||
@ -29,9 +29,9 @@ pub async fn files_create_core(
|
||||
)
|
||||
.await?;
|
||||
let file_id = common_utils::generate_id(consts::ID_LENGTH, "file");
|
||||
#[cfg(feature = "s3")]
|
||||
#[cfg(feature = "aws_s3")]
|
||||
let file_key = format!("{}/{}", merchant_account.merchant_id, file_id);
|
||||
#[cfg(not(feature = "s3"))]
|
||||
#[cfg(not(feature = "aws_s3"))]
|
||||
let file_key = format!("{}_{}", merchant_account.merchant_id, file_id);
|
||||
let file_new = diesel_models::file::FileMetadataNew {
|
||||
file_id: file_id.clone(),
|
||||
|
||||
Reference in New Issue
Block a user