File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ import {
9
9
ManyToMany ,
10
10
ManyToOne ,
11
11
OneToMany ,
12
- OneToOne ,
13
12
PrimaryGeneratedColumn ,
14
13
UpdateDateColumn ,
15
14
type Relation ,
16
15
} from "typeorm" ;
17
- import { ActorEntity } from "./Actor.entity.js" ;
18
16
import { AreaEntity } from "./Area.entity.js" ;
19
17
import { EventV2Entity } from "./Event.v2.entity.js" ;
20
18
import { KeywordEntity } from "./Keyword.entity.js" ;
@@ -95,18 +93,6 @@ export class MediaEntity {
95
93
} )
96
94
keywords : Relation < KeywordEntity [ ] > ;
97
95
98
- @OneToOne ( ( ) => ActorEntity , ( a ) => a . avatar , {
99
- cascade : false ,
100
- nullable : true ,
101
- } )
102
- actor ?: Relation < ActorEntity > | null ;
103
-
104
- // @OneToOne (() => GroupEntity, {
105
- // cascade: false,
106
- // nullable: true,
107
- // })
108
- // group?: Relation<GroupEntity>;
109
-
110
96
socialPosts ?: SocialPostEntity [ ] ;
111
97
112
98
@CreateDateColumn ( )
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const fetchGroups =
40
40
return pipe (
41
41
db . manager
42
42
. createQueryBuilder ( GroupEntity , "group" )
43
+ . leftJoinAndSelect ( "group.avatar" , "avatar" )
43
44
. leftJoinAndSelect ( "group.members" , "members" )
44
45
. leftJoinAndSelect ( "members.actor" , "actor" ) ,
45
46
( q ) => {
You can’t perform that action at this time.
0 commit comments