Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
/ models Public archive

Commit

Permalink
fix: support origin adding properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jul 6, 2022
1 parent 1db4b60 commit 1f44123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/models/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ export class Repository {
@OneToOne(() => Origin, origin => origin.databaseId, { nullable: false })
@JoinColumn({ name: 'originId' })
// @ts-ignore
repository: Repository
origin: Origin

@Column('varchar', { name: 'originId', nullable: true })
// @ts-ignore
originId: string
}

0 comments on commit 1f44123

Please sign in to comment.