@things-factory/product-base 6.0.104 → 6.0.113

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "6.0.104",
3
+ "version": "6.0.113",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,9 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/biz-base": "^6.0.104",
27
+ "@things-factory/biz-base": "^6.0.113",
28
28
  "@things-factory/env": "^6.0.101",
29
- "@things-factory/routing-base": "^6.0.104"
29
+ "@things-factory/routing-base": "^6.0.113"
30
30
  },
31
- "gitHead": "c239d87b7e21262af03804064e01a6dc3a2e23fa"
31
+ "gitHead": "1f753c3122911f7e014edae7e469784cdfb8678e"
32
32
  }
@@ -113,6 +113,19 @@ export class ProductDetailQuery {
113
113
  where: { domain: { id: warehouseDomain.id } }
114
114
  })
115
115
  bizplaceIds.push(companyBizplace.id)
116
+ } else if (warehouseDomain?.extType === 'factory') {
117
+ const myBizplace: Bizplace = await getRepository(Bizplace).findOne({
118
+ where: { domain: { id: warehouseDomain.id } },
119
+ relations: ['domain']
120
+ })
121
+ const companiesBizplaces: Bizplace[] = await getCompaniesBizplaces(domains, warehouseDomain)
122
+ const partnersCompanyBizplaces: Bizplace[] = await getPartnersCompanyBizplaces(domain, user)
123
+ bizplaceIds = [
124
+ ...bizplaceIds,
125
+ myBizplace.id,
126
+ ...companiesBizplaces.map(biz => biz.id),
127
+ ...partnersCompanyBizplaces.map(biz => biz.id)
128
+ ]
116
129
  } else {
117
130
  const companiesBizplaces: Bizplace[] = await getCompaniesBizplaces(domains, warehouseDomain)
118
131
  const partnersCompanyBizplaces: Bizplace[] = await getPartnersCompanyBizplaces(domain, user)