mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 08:07:55 +00:00
remove console logs
This commit is contained in:
@@ -241,9 +241,7 @@ export class SpaceService {
|
|||||||
'subspaces.productAllocations',
|
'subspaces.productAllocations',
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
console.log('spaceObject :>> ', space);
|
|
||||||
const clonedSpace = structuredClone(space);
|
const clonedSpace = structuredClone(space);
|
||||||
console.log(`creating duplicate for space ${clonedSpace.spaceName}`);
|
|
||||||
const newSpace = queryRunner.manager.create(SpaceEntity, {
|
const newSpace = queryRunner.manager.create(SpaceEntity, {
|
||||||
...clonedSpace,
|
...clonedSpace,
|
||||||
spaceName: newSpaceName || clonedSpace.spaceName,
|
spaceName: newSpaceName || clonedSpace.spaceName,
|
||||||
@@ -254,7 +252,6 @@ export class SpaceService {
|
|||||||
uuid: uuidV4(),
|
uuid: uuidV4(),
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`handling space ${newSpace.spaceName} allocations`);
|
|
||||||
if (clonedSpace.productAllocations?.length) {
|
if (clonedSpace.productAllocations?.length) {
|
||||||
newSpace.productAllocations = this.copySpaceAllocations(
|
newSpace.productAllocations = this.copySpaceAllocations(
|
||||||
newSpace,
|
newSpace,
|
||||||
@@ -262,7 +259,6 @@ export class SpaceService {
|
|||||||
queryRunner,
|
queryRunner,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
console.log(`handling space ${newSpace.spaceName} subspaces`);
|
|
||||||
if (clonedSpace.subspaces?.length) {
|
if (clonedSpace.subspaces?.length) {
|
||||||
newSpace.subspaces = this.copySpaceSubspaces(
|
newSpace.subspaces = this.copySpaceSubspaces(
|
||||||
newSpace,
|
newSpace,
|
||||||
@@ -272,7 +268,6 @@ export class SpaceService {
|
|||||||
}
|
}
|
||||||
const savedSpace = await queryRunner.manager.save(newSpace);
|
const savedSpace = await queryRunner.manager.save(newSpace);
|
||||||
|
|
||||||
console.log(`handling space ${newSpace.spaceName} children`);
|
|
||||||
if (clonedSpace.children?.length) {
|
if (clonedSpace.children?.length) {
|
||||||
for (const child of clonedSpace.children) {
|
for (const child of clonedSpace.children) {
|
||||||
if (child.disabled) continue;
|
if (child.disabled) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user