feat: rename app provider to application provider across codebase and update terminology
This commit is contained in:
@@ -626,8 +626,8 @@ impl OrderService {
|
||||
order.set_payment_details(payment_details.clone());
|
||||
}
|
||||
|
||||
// PHASE 1: Create app deployments for successful app orders
|
||||
if let Err(e) = self.create_app_deployments_from_order(&order) {
|
||||
// PHASE 1: Create application deployments for successful app orders
|
||||
if let Err(e) = self.create_application_deployments_from_order(&order) {
|
||||
}
|
||||
|
||||
// PHASE 2: Create service bookings for successful service orders
|
||||
@@ -780,8 +780,8 @@ impl OrderService {
|
||||
stats
|
||||
}
|
||||
|
||||
/// PHASE 1: Create app deployments when apps are successfully ordered
|
||||
fn create_app_deployments_from_order(&self, order: &Order) -> Result<(), String> {
|
||||
/// PHASE 1: Create application deployments when apps are successfully ordered
|
||||
fn create_application_deployments_from_order(&self, order: &Order) -> Result<(), String> {
|
||||
use crate::services::user_persistence::{UserPersistence, AppDeployment};
|
||||
use crate::models::user::ResourceUtilization;
|
||||
use chrono::Utc;
|
||||
@@ -837,14 +837,14 @@ impl OrderService {
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
// Add deployment to app provider's data
|
||||
if let Err(e) = UserPersistence::add_user_app_deployment(&app_provider_email, deployment.clone()) {
|
||||
// Add deployment to application provider's data
|
||||
if let Err(e) = UserPersistence::add_user_application_deployment(&app_provider_email, deployment.clone()) {
|
||||
} else {
|
||||
}
|
||||
|
||||
// Also add deployment to customer's data (for future user dashboard)
|
||||
if customer_email != "guest" {
|
||||
if let Err(e) = UserPersistence::add_user_app_deployment(&customer_email, deployment) {
|
||||
if let Err(e) = UserPersistence::add_user_application_deployment(&customer_email, deployment) {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user