mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:44:55 +00:00
error
This commit is contained in:
@ -40,7 +40,7 @@ export class PropogateUpdateSpaceModelHandler
|
|||||||
|
|
||||||
async execute(command: PropogateUpdateSpaceModelCommand): Promise<void> {
|
async execute(command: PropogateUpdateSpaceModelCommand): Promise<void> {
|
||||||
const { subspaceModels, spaces } = command.param;
|
const { subspaceModels, spaces } = command.param;
|
||||||
|
try {
|
||||||
if (!subspaceModels || subspaceModels.length === 0) return;
|
if (!subspaceModels || subspaceModels.length === 0) return;
|
||||||
if (!spaces || spaces.length === 0) return;
|
if (!spaces || spaces.length === 0) return;
|
||||||
|
|
||||||
@ -53,6 +53,9 @@ export class PropogateUpdateSpaceModelHandler
|
|||||||
await this.updateSubspaceModel(subspaceModel);
|
await this.updateSubspaceModel(subspaceModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error processing subspaceModel updates`, error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async addSubspaceModel(
|
async addSubspaceModel(
|
||||||
|
|||||||
Reference in New Issue
Block a user