Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/overseerr/blame/commit/b3882de8930a70adb2f93a27be6370bfa1826587/server/entity/Issue.ts
You should set ROOT_URL correctly, otherwise the web may not work correctly.
import type { IssueType } from '@server/constants/issue' ;
import { IssueStatus } from '@server/constants/issue' ;
import {
Column ,
CreateDateColumn ,
Entity ,
ManyToOne ,
OneToMany ,
PrimaryGeneratedColumn ,
UpdateDateColumn ,
} from 'typeorm' ;
import IssueComment from './IssueComment' ;
import Media from './Media' ;
import { User } from './User' ;
@Entity ( )
class Issue {
@PrimaryGeneratedColumn ( )
public id : number ;
@Column ( { type : 'int' } )
public issueType : IssueType ;
@Column ( { type : 'int' , default : IssueStatus . OPEN } )
public status : IssueStatus ;
@Column ( { type : 'int' , default : 0 } )
public problemSeason : number ;
@Column ( { type : 'int' , default : 0 } )
public problemEpisode : number ;
@ManyToOne ( ( ) = > Media , ( media ) = > media . issues , {
eager : true ,
onDelete : 'CASCADE' ,
} )
public media : Media ;
@ManyToOne ( ( ) = > User , ( user ) = > user . createdIssues , {
eager : true ,
onDelete : 'CASCADE' ,
} )
public createdBy : User ;
@ManyToOne ( ( ) = > User , {
eager : true ,
onDelete : 'CASCADE' ,
nullable : true ,
} )
public modifiedBy? : User ;
@OneToMany ( ( ) = > IssueComment , ( comment ) = > comment . issue , {
cascade : true ,
eager : true ,
} )
public comments : IssueComment [ ] ;
@CreateDateColumn ( )
public createdAt : Date ;
@UpdateDateColumn ( )
public updatedAt : Date ;
constructor ( init? : Partial < Issue > ) {
Object . assign ( this , init ) ;
}
}
export default Issue ;