@autofleet/sadot 0.5.4-beta.5 → 0.5.4-beta.6
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.
|
@@ -78,13 +78,13 @@ router.get('/:customFieldDefinitionId', async (req, res) => {
|
|
|
78
78
|
router.get('/', async (req, res) => {
|
|
79
79
|
const { modelName } = req.params;
|
|
80
80
|
const { entityIds } = req.query;
|
|
81
|
-
logger_1.default.info('sadot Fetching custom field definitions', { modelName, entityIds });
|
|
82
81
|
const modelType = toPascalCase(modelName);
|
|
83
82
|
try {
|
|
84
83
|
const where = { modelType };
|
|
85
84
|
if (entityIds?.length > 0) {
|
|
86
85
|
where.entityId = entityIds;
|
|
87
86
|
}
|
|
87
|
+
logger_1.default.info('sadot Fetching custom field definitions', { modelType, entityIds, where });
|
|
88
88
|
const customFieldDefinitions = await DefinitionRepo.findAll({ ...where }, { withDisabled: true });
|
|
89
89
|
return res.json(customFieldDefinitions);
|
|
90
90
|
}
|
package/package.json
CHANGED
|
@@ -59,13 +59,14 @@ router.get('/:customFieldDefinitionId', async (req, res) => {
|
|
|
59
59
|
router.get('/', async (req, res) => {
|
|
60
60
|
const { modelName } = req.params as any;
|
|
61
61
|
const { entityIds } = req.query as any;
|
|
62
|
-
logger.info('sadot Fetching custom field definitions', { modelName, entityIds });
|
|
63
62
|
const modelType = toPascalCase(modelName);
|
|
64
63
|
try {
|
|
65
64
|
const where: any = { modelType };
|
|
66
65
|
if (entityIds?.length > 0) {
|
|
67
66
|
where.entityId = entityIds;
|
|
68
67
|
}
|
|
68
|
+
|
|
69
|
+
logger.info('sadot Fetching custom field definitions', { modelType, entityIds, where });
|
|
69
70
|
const customFieldDefinitions = await DefinitionRepo.findAll(
|
|
70
71
|
{ ...where },
|
|
71
72
|
{ withDisabled: true },
|