@things-factory/fav-base 7.0.1-alpha.94 → 7.0.1-alpha.96

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": "@things-factory/fav-base",
3
- "version": "7.0.1-alpha.94",
3
+ "version": "7.0.1-alpha.96",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,7 +24,7 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/auth-base": "^7.0.1-alpha.94"
27
+ "@things-factory/auth-base": "^7.0.1-alpha.96"
28
28
  },
29
- "gitHead": "70511fc686b5e2aa61c2278a91de7e40d78b3916"
29
+ "gitHead": "454f3e70a838f7cf177bcad936d335ad446093c8"
30
30
  }
@@ -29,7 +29,7 @@ export class Favorite {
29
29
  domainId?: string
30
30
 
31
31
  @ManyToOne(type => User)
32
- @Field()
32
+ @Field(type => User)
33
33
  user: User
34
34
 
35
35
  @RelationId((favorite: Favorite) => favorite.user)
@@ -47,19 +47,15 @@ export class Favorite {
47
47
  @Field({ nullable: true })
48
48
  updatedAt?: Date
49
49
 
50
- @ManyToOne(type => User, {
51
- nullable: true
52
- })
53
- @Field({ nullable: true })
50
+ @ManyToOne(type => User, { nullable: true })
51
+ @Field(type => User, { nullable: true })
54
52
  creator?: User
55
53
 
56
54
  @RelationId((favorite: Favorite) => favorite.creator)
57
55
  creatorId?: string
58
56
 
59
- @ManyToOne(type => User, {
60
- nullable: true
61
- })
62
- @Field({ nullable: true })
57
+ @ManyToOne(type => User, { nullable: true })
58
+ @Field(type => User, { nullable: true })
63
59
  updater?: User
64
60
 
65
61
  @RelationId((favorite: Favorite) => favorite.updater)