@autofleet/sadot 0.5.4-beta.15 → 0.5.4-beta.17

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.
@@ -101,6 +101,7 @@ router.patch('/:customFieldDefinitionId', async (req, res) => {
101
101
  const { customFieldDefinitionId, modelName } = req.params;
102
102
  const modelType = toPascalCase(modelName);
103
103
  try {
104
+ logger_1.default.info('sadot Updating custom field definition', { customFieldDefinitionId, modelType });
104
105
  // eslint-disable-next-line max-len
105
106
  const validatedPayload = await (0, validations_1.validateCustomFieldDefinitionUpdate)(req.body);
106
107
  const customFieldDefinition = await DefinitionRepo.findByWhere({
@@ -43,6 +43,7 @@ const findByEntityIds = async (modelType, entityIds, options = {}) => models_1.C
43
43
  exports.findByEntityIds = findByEntityIds;
44
44
  const findByWhere = (where) => models_1.CustomFieldDefinition.scope('userScope').findOne({
45
45
  where,
46
+ logging: console.log,
46
47
  });
47
48
  exports.findByWhere = findByWhere;
48
49
  const findDefinitionsByModels = async (modelTypes, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sadot",
3
- "version": "0.5.4-beta.15",
3
+ "version": "0.5.4-beta.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -84,6 +84,7 @@ router.patch('/:customFieldDefinitionId', async (req, res) => {
84
84
  const { customFieldDefinitionId, modelName } = req.params as any;
85
85
  const modelType = toPascalCase(modelName);
86
86
  try {
87
+ logger.info('sadot Updating custom field definition', { customFieldDefinitionId, modelType });
87
88
  // eslint-disable-next-line max-len
88
89
  const validatedPayload: UpdateCustomFieldDefinition = await validateCustomFieldDefinitionUpdate(req.body);
89
90
 
@@ -60,6 +60,7 @@ export const findByEntityIds = async (
60
60
  export const findByWhere = (where): Promise<CustomFieldDefinition | null> =>
61
61
  CustomFieldDefinition.scope('userScope').findOne({
62
62
  where,
63
+ logging: console.log,
63
64
  });
64
65
 
65
66
  export const findDefinitionsByModels = async (