rez_core 2.2.241 → 2.2.243

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.241",
3
+ "version": "2.2.243",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -126,10 +126,7 @@ export class FilterService {
126
126
  true,
127
127
  );
128
128
 
129
- // const attributeMeta =
130
- // await this.attributeMasterService.findAttributesByMappedEntityType(
131
- // entity_type,
132
- // );
129
+
133
130
  const attributeMetaMap = getTableColumnMeta.reduce(
134
131
  (acc, attr) => {
135
132
  acc[attr.attribute_key] = attr;
@@ -223,7 +220,6 @@ export class FilterService {
223
220
  [user_id, entity_type, level_id, level_type],
224
221
  );
225
222
 
226
- console.log('found layoutPreference', layoutPreference);
227
223
 
228
224
  // Extract layout preference
229
225
  const layout = layoutPreference?.[0]?.mapped_json?.quick_tab || {};
@@ -425,6 +421,7 @@ export class FilterService {
425
421
  const size = dto.size && dto.size > 0 ? dto.size : 10;
426
422
  qb.skip((page - 1) * size).take(size);
427
423
 
424
+ console.log(qb, 'query');
428
425
  // Get paginated data
429
426
  const entity_list = await qb.getRawMany();
430
427
 
@@ -172,7 +172,6 @@ export class EntityController {
172
172
  appcode,
173
173
  );
174
174
 
175
- console.log('savedData', savedData);
176
175
  await this.workflowAutomationEngineService.handleEntityEvent(
177
176
  entityData.entity_type,
178
177
  'CREATE',
@@ -234,7 +233,7 @@ export class EntityController {
234
233
  await this.workflowAutomationEngineService.handleEntityEvent(
235
234
  entityData.entity_type,
236
235
  'UPDATE',
237
- entityData,
236
+ updatedData,
238
237
  existingEntity,
239
238
  loggedInUser,
240
239
  );
@@ -254,27 +254,11 @@ export class LoginService {
254
254
  browser?: string;
255
255
  os?: string;
256
256
  }) {
257
- const { email, subdomain, fcm_token, ip, browser, os } = data;
257
+ const { email } = data;
258
258
  const user = await this.userService.findByEmailId(email);
259
259
 
260
260
  if (!user) {
261
261
  return new BadRequestException('User not found');
262
- // If user doesn't exist, create a new user record
263
- // user = new UserData();
264
- // user.email_id = email;
265
- // user.first_name = name.givenName;
266
- // user.last_name = name.familyName;
267
-
268
- // user.name = user.first_name + ' ' + user.last_name;
269
- // // let savedUserResponse = await this.userService.createEntity(user, null);
270
-
271
- // if (savedUserResponse.success) {
272
- // user = savedUserResponse.data as UserData;
273
- // } else {
274
- // throw new BadRequestException(
275
- // savedUserResponse.error || 'Failed to create user',
276
- // );
277
- // }
278
262
  }
279
263
 
280
264
  // Create session (Same as JWT login flow)
@@ -27,7 +27,6 @@ export class WorkflowAutomationEngineService {
27
27
  eventType,
28
28
  );
29
29
 
30
- console.log(workflows, 'workflows found');
31
30
  for (const wf of workflows) {
32
31
  const eventMatched = await this.filterEvaluator.evaluateTriggerAttributes(
33
32
  oldEntity,