mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-17 03:29:08 +00:00
FIX: reseting productConnectionsMissing and productNetworkConfigsMissing
This commit is contained in:
@@ -240,9 +240,9 @@ export class ConnectionClientService implements OnModuleInit {
|
||||
'DEBUG_ConnectionsMigrations - ' + JSON.stringify(customer_connections),
|
||||
);
|
||||
|
||||
const productConnectionsMissing: ConnectionApiConnection[] = [];
|
||||
const productNetworkConfigsMissing: ConnectionsApiNetworkConfig[] = [];
|
||||
const migrations = customer_connections.map((cc) => {
|
||||
const productConnectionsMissing: ConnectionApiConnection[] = [];
|
||||
const productNetworkConfigsMissing: ConnectionsApiNetworkConfig[] = [];
|
||||
this.logger.info(
|
||||
'DEBUG_ConnectionsMigrations - customer_connections ' +
|
||||
JSON.stringify(cc),
|
||||
@@ -279,8 +279,8 @@ export class ConnectionClientService implements OnModuleInit {
|
||||
id: network_config.config_id,
|
||||
created_at: network_config.created_at,
|
||||
updated_at: network_config.updated_at,
|
||||
customer_name: cc.customer_name,
|
||||
customer_id: cc.customer_id,
|
||||
customer_name: customer_name,
|
||||
customer_id: customer_id,
|
||||
user_id: '',
|
||||
network_type_id: '',
|
||||
network_type_name: network_config.type,
|
||||
@@ -320,8 +320,8 @@ export class ConnectionClientService implements OnModuleInit {
|
||||
connector_id: connector._id,
|
||||
connector_name: connector._source.name,
|
||||
in_use: 1,
|
||||
username: 'auto',
|
||||
customer_name: customer_name,
|
||||
username: '',
|
||||
customer_name,
|
||||
};
|
||||
|
||||
if (apply) {
|
||||
@@ -331,7 +331,7 @@ export class ConnectionClientService implements OnModuleInit {
|
||||
}
|
||||
}
|
||||
return {
|
||||
customer: { ...cc },
|
||||
customer_name,
|
||||
updatePromises,
|
||||
productConnectionsMissing,
|
||||
productNetworkConfigsMissing,
|
||||
@@ -344,7 +344,7 @@ export class ConnectionClientService implements OnModuleInit {
|
||||
status = await Promise.all(migration.updatePromises);
|
||||
}
|
||||
customersStatus.push({
|
||||
customer: migration.customer.customer_name,
|
||||
customer: migration.customer_name,
|
||||
status,
|
||||
productConnectionsMissing: migration.productConnectionsMissing,
|
||||
productNetworkConfigsMissing: migration.productNetworkConfigsMissing,
|
||||
|
||||
Reference in New Issue
Block a user