@camstack/system 1.2.207 → 1.2.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3292,7 +3292,7 @@ var StorageOrchestratorAddon = class extends require_dist.BaseAddon {
|
|
|
3292
3292
|
return Promise.all(rows.map(async (loc) => ({
|
|
3293
3293
|
...this.redacted(loc),
|
|
3294
3294
|
...this.occupancy.ownedFor(loc.id) !== void 0 ? { owned: this.occupancy.ownedFor(loc.id) } : {},
|
|
3295
|
-
capacity: require_dist.
|
|
3295
|
+
capacity: require_dist.mayReadLocation(loc) ? await this.localCapacityOf(loc) : null
|
|
3296
3296
|
})));
|
|
3297
3297
|
},
|
|
3298
3298
|
listLocationDeclarations: async () => service.listDeclarations(),
|
|
@@ -3287,7 +3287,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
3287
3287
|
return Promise.all(rows.map(async (loc) => ({
|
|
3288
3288
|
...this.redacted(loc),
|
|
3289
3289
|
...this.occupancy.ownedFor(loc.id) !== void 0 ? { owned: this.occupancy.ownedFor(loc.id) } : {},
|
|
3290
|
-
capacity:
|
|
3290
|
+
capacity: mayReadLocation(loc) ? await this.localCapacityOf(loc) : null
|
|
3291
3291
|
})));
|
|
3292
3292
|
},
|
|
3293
3293
|
listLocationDeclarations: async () => service.listDeclarations(),
|