echadospalante-core 9.3.0 → 9.3.1

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.
@@ -44,7 +44,7 @@ __decorate([
44
44
  __metadata("design:type", venture_publication_data_1.VenturePublicationData)
45
45
  ], PublicationClapData.prototype, "venturePublication", void 0);
46
46
  __decorate([
47
- (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.claps),
47
+ (0, typeorm_1.ManyToOne)(() => user_detail_data_1.UserDetailData, (userDetail) => userDetail.publicationClaps),
48
48
  (0, typeorm_1.JoinColumn)({ name: "userDetailId" }),
49
49
  __metadata("design:type", user_detail_data_1.UserDetailData)
50
50
  ], PublicationClapData.prototype, "user", void 0);
@@ -43,7 +43,7 @@ __decorate([
43
43
  __metadata("design:type", Date)
44
44
  ], RoleData.prototype, "updatedAt", void 0);
45
45
  __decorate([
46
- (0, typeorm_1.ManyToMany)(() => user_data_1.UserData, (user) => user.roles),
46
+ (0, typeorm_1.ManyToMany)(() => user_data_1.UserData, (user) => user.roles, { eager: false }),
47
47
  __metadata("design:type", Array)
48
48
  ], RoleData.prototype, "users", void 0);
49
49
  exports.RoleData = RoleData = __decorate([
@@ -16,7 +16,7 @@ export declare class UserDetailData {
16
16
  municipality: MunicipalityData;
17
17
  donations: EventDonationData[];
18
18
  notifications: NotificationData[];
19
- claps: PublicationClapData[];
19
+ publicationClaps: PublicationClapData[];
20
20
  comments: PublicationCommentData[];
21
21
  ventures: VentureData[];
22
22
  sponsorships: VentureSponsorshipData[];
@@ -29,7 +29,7 @@ let UserDetailData = class UserDetailData {
29
29
  municipality;
30
30
  donations;
31
31
  notifications;
32
- claps;
32
+ publicationClaps;
33
33
  comments;
34
34
  ventures;
35
35
  sponsorships;
@@ -72,7 +72,7 @@ __decorate([
72
72
  __decorate([
73
73
  (0, typeorm_1.OneToMany)(() => publication_clap_data_1.PublicationClapData, (publicationClap) => publicationClap.user),
74
74
  __metadata("design:type", Array)
75
- ], UserDetailData.prototype, "claps", void 0);
75
+ ], UserDetailData.prototype, "publicationClaps", void 0);
76
76
  __decorate([
77
77
  (0, typeorm_1.OneToMany)(() => publication_comment_data_1.PublicationCommentData, (publicationComment) => publicationComment.User),
78
78
  __metadata("design:type", Array)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echadospalante-core",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,6 +7,7 @@ import {
7
7
  ManyToOne,
8
8
  JoinColumn,
9
9
  } from "typeorm";
10
+
10
11
  import { UserDetailData } from "./user-detail.data";
11
12
  import { VenturePublicationData } from "./venture-publication.data";
12
13
 
@@ -31,7 +32,7 @@ export class PublicationClapData {
31
32
  @JoinColumn({ name: "publicationId" })
32
33
  venturePublication: VenturePublicationData;
33
34
 
34
- @ManyToOne(() => UserDetailData, (userDetail) => userDetail.claps)
35
+ @ManyToOne(() => UserDetailData, (userDetail) => userDetail.publicationClaps)
35
36
  @JoinColumn({ name: "userDetailId" })
36
37
  user: UserDetailData;
37
38
  }
@@ -27,6 +27,6 @@ export class RoleData {
27
27
  @UpdateDateColumn()
28
28
  updatedAt: Date;
29
29
 
30
- @ManyToMany(() => UserData, (user) => user.roles)
30
+ @ManyToMany(() => UserData, (user) => user.roles, { eager: false })
31
31
  users: UserData[];
32
32
  }
@@ -50,7 +50,7 @@ export class UserDetailData {
50
50
  () => PublicationClapData,
51
51
  (publicationClap) => publicationClap.user
52
52
  )
53
- claps: PublicationClapData[];
53
+ publicationClaps: PublicationClapData[];
54
54
 
55
55
  @OneToMany(
56
56
  () => PublicationCommentData,