@@ -1361,29 +1361,35 @@ export class OrderingService
1361
1361
)
1362
1362
) ;
1363
1363
1364
- order . meta . owners = [
1365
- ...order . meta ?. owners ,
1366
- ! has_shop_as_owner && {
1367
- id : this . urns . ownerIndicatoryEntity ,
1368
- value : this . urns . organization ,
1369
- attributes : [
1370
- {
1371
- id : this . urns . ownerInstance ,
1372
- value : shop . payload . organization_id
1373
- }
1374
- ]
1375
- } ,
1376
- ! has_customer_as_owner && {
1377
- id : this . urns . ownerIndicatoryEntity ,
1378
- value : customer_entity ,
1379
- attributes : [
1380
- {
1381
- id : this . urns . ownerInstance ,
1382
- value : customer_instance
1383
- }
1384
- ]
1385
- }
1386
- ] ;
1364
+ if ( ! has_shop_as_owner ) {
1365
+ order . meta . owners . push (
1366
+ {
1367
+ id : this . urns . ownerIndicatoryEntity ,
1368
+ value : this . urns . organization ,
1369
+ attributes : [
1370
+ {
1371
+ id : this . urns . ownerInstance ,
1372
+ value : shop . payload . organization_id
1373
+ }
1374
+ ]
1375
+ }
1376
+ ) ;
1377
+ }
1378
+
1379
+ if ( ! has_customer_as_owner ) {
1380
+ order . meta . owners . push (
1381
+ {
1382
+ id : this . urns . ownerIndicatoryEntity ,
1383
+ value : customer_entity ,
1384
+ attributes : [
1385
+ {
1386
+ id : this . urns . ownerInstance ,
1387
+ value : customer_instance
1388
+ }
1389
+ ]
1390
+ }
1391
+ ) ;
1392
+ } ;
1387
1393
1388
1394
return {
1389
1395
payload : order ,
0 commit comments