From 2e8aabab1468f67d218f6e1f56375c1d93968515 Mon Sep 17 00:00:00 2001 From: vicent Date: Mon, 6 Feb 2023 14:32:54 +0100 Subject: [PATCH] fix: type relation in models --- modules/shelving/back/models/parking.json | 2 +- modules/ticket/back/models/saleGroup.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/shelving/back/models/parking.json b/modules/shelving/back/models/parking.json index bb1e02607..53fec6e69 100644 --- a/modules/shelving/back/models/parking.json +++ b/modules/shelving/back/models/parking.json @@ -32,7 +32,7 @@ }, "relations": { "saleGroup": { - "type": "hasOne", + "type": "hasMany", "model": "saleGroup", "foreignKey": "parkingFk" } diff --git a/modules/ticket/back/models/saleGroup.json b/modules/ticket/back/models/saleGroup.json index dd34e450b..d5cf82cb5 100644 --- a/modules/ticket/back/models/saleGroup.json +++ b/modules/ticket/back/models/saleGroup.json @@ -18,7 +18,7 @@ }, "relations": { "saleGroupDetail": { - "type": "hasOne", + "type": "hasMany", "model": "SaleGroupDetail", "foreignKey": "saleGroupFk" },