@autofleet/sadot 0.5.4-beta.6 → 0.5.4-beta.8
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.
|
@@ -85,7 +85,8 @@ router.get('/', async (req, res) => {
|
|
|
85
85
|
where.entityId = entityIds;
|
|
86
86
|
}
|
|
87
87
|
logger_1.default.info('sadot Fetching custom field definitions', { modelType, entityIds, where });
|
|
88
|
-
const customFieldDefinitions = await DefinitionRepo.findAll(
|
|
88
|
+
const customFieldDefinitions = await DefinitionRepo.findAll(where, { withDisabled: true });
|
|
89
|
+
logger_1.default.info('sadot Fetched custom field definitions customFieldDefinitions', { customFieldDefinitions });
|
|
89
90
|
return res.json(customFieldDefinitions);
|
|
90
91
|
}
|
|
91
92
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -67,10 +67,9 @@ router.get('/', async (req, res) => {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
logger.info('sadot Fetching custom field definitions', { modelType, entityIds, where });
|
|
70
|
-
const customFieldDefinitions = await DefinitionRepo.findAll(
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
);
|
|
70
|
+
const customFieldDefinitions = await DefinitionRepo.findAll(where,
|
|
71
|
+
{ withDisabled: true });
|
|
72
|
+
logger.info('sadot Fetched custom field definitions customFieldDefinitions', { customFieldDefinitions });
|
|
74
73
|
return res.json(customFieldDefinitions);
|
|
75
74
|
} catch (err) {
|
|
76
75
|
logger.error('Failed to fetch custom field definitions', err);
|