@hed-hog/contact 0.0.328 → 0.0.330

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": "@hed-hog/contact",
3
- "version": "0.0.328",
3
+ "version": "0.0.330",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -9,13 +9,14 @@
9
9
  "@nestjs/core": "^11",
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
+ "playwright": "^1.49.0",
12
13
  "@hed-hog/api": "0.0.8",
13
- "@hed-hog/api-locale": "0.0.14",
14
- "@hed-hog/api-mail": "0.0.9",
15
- "@hed-hog/address": "0.0.328",
14
+ "@hed-hog/api-pagination": "0.0.7",
16
15
  "@hed-hog/api-prisma": "0.0.6",
17
- "@hed-hog/core": "0.0.328",
18
- "@hed-hog/api-pagination": "0.0.7"
16
+ "@hed-hog/address": "0.0.330",
17
+ "@hed-hog/core": "0.0.330",
18
+ "@hed-hog/api-mail": "0.0.9",
19
+ "@hed-hog/api-locale": "0.0.14"
19
20
  },
20
21
  "exports": {
21
22
  ".": {
@@ -30,11 +30,12 @@ export class ProposalController {
30
30
  async list(
31
31
  @Pagination() paginationParams,
32
32
  @Query() query: ProposalListQueryDto,
33
+ @User() user,
33
34
  ) {
34
- return this.proposalService.list({
35
- ...paginationParams,
36
- ...query,
37
- });
35
+ return this.proposalService.list(
36
+ { ...paginationParams, ...query },
37
+ Number(user?.id || 0) || undefined,
38
+ );
38
39
  }
39
40
 
40
41
  @Get('stats')
@@ -46,8 +47,9 @@ export class ProposalController {
46
47
  async getById(
47
48
  @Param('id', ParseIntPipe) id: number,
48
49
  @Locale() locale: string,
50
+ @User() user,
49
51
  ) {
50
- return this.proposalService.getById(id, locale);
52
+ return this.proposalService.getById(id, locale, Number(user?.id || 0) || undefined);
51
53
  }
52
54
 
53
55
  @Post(':id/generate-pdf')