rez_core 1.1.4 → 1.1.5

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": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -1,4 +1,12 @@
1
- import { Controller, HttpStatus, Post, Query, Req, Res, UseGuards } from '@nestjs/common';
1
+ import {
2
+ Controller,
3
+ HttpStatus,
4
+ Post,
5
+ Query,
6
+ Req,
7
+ Res,
8
+ UseGuards,
9
+ } from '@nestjs/common';
2
10
  import { EntityTableService } from '../service/entity-table.service';
3
11
  import { Response } from 'express';
4
12
  import { JwtAuthGuard } from '../../auth/guards/jwt.guard';
@@ -9,17 +17,24 @@ export class MetaController {
9
17
  constructor(private readonly entityTableService: EntityTableService) {}
10
18
 
11
19
  @Post('get-table-data')
12
- async getTableMetaData(@Query('entity_type') entityType: string,
13
- @Query('list_type') listType: string,
14
- @Res() response: Response,
15
- @Req() req: Request & { user: any }) {
16
- const userId = req.user.userId;
17
- console.log(userId)
18
- let entityTableDto = await this.entityTableService.getTableMetaDataForListing(entityType, listType,userId);
20
+ async getTableMetaData(
21
+ @Query('entity_type') entityType: string,
22
+ @Query('list_type') listType: string,
23
+ @Res() response: Response,
24
+ @Req() req: Request & { user: any },
25
+ ) {
26
+ const userId = req.user.userId;
27
+
28
+ let entityTableDto =
29
+ await this.entityTableService.getTableMetaDataForListing(
30
+ entityType,
31
+ listType,
32
+ userId,
33
+ );
19
34
  return response.status(HttpStatus.OK).json({
20
35
  success: true,
21
36
  data: entityTableDto,
22
- message: 'Data fetch successfully!'
23
- })
37
+ message: 'Data fetch successfully!',
38
+ });
24
39
  }
25
40
  }